Skip to content

Commit

Permalink
Add Purchase Plan to Azure Machine Provider Spec
Browse files Browse the repository at this point in the history
With Azure marketplace images, some images require that the
subscription accept the terms of a purchase plan before using; and
that purchase plan information must be included in Azure API calls
when provisioning a VM. Images that do not require purchase plans
must not submit purchase plan info.

This adds a PurchasePlanName field to designate when a purchase
plan should be generated for an image.
  • Loading branch information
patrickdillon committed Nov 17, 2021
1 parent be1be0e commit 404f366
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
7 changes: 7 additions & 0 deletions machine/v1beta1/types_azureprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,13 @@ type Image struct {
Version string `json:"version"`
// ResourceID specifies an image to use by ID
ResourceID string `json:"resourceID"`
// PurchasePlanName is the name of the purchase plan for a third-party marketplace image.
// If the image requires a purchase plan, this value should equal the SKU. If the image
// does not require a purchase plan, this field must be empty. Purchase plans must already
// be accepted in the subscription. For more information see:
// https://docs.microsoft.com/en-us/azure/virtual-machines/linux/cli-ps-findimage#check-the-purchase-plan-information
// +optional
PurchasePlanName string `json:"purchasePlanName,omitempty"`
}

type OSDisk struct {
Expand Down
13 changes: 7 additions & 6 deletions machine/v1beta1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 404f366

Please sign in to comment.