Skip to content

Commit dadedc5

Browse files
committed
Add Purchase Plan to Azure Machine Provider Spec
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.
1 parent be1be0e commit dadedc5

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

machine/v1beta1/types_azureprovider.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,13 @@ type Image struct {
174174
Version string `json:"version"`
175175
// ResourceID specifies an image to use by ID
176176
ResourceID string `json:"resourceID"`
177+
// PurchasePlanName is the name of the purchase plan for a third-party marketplace image.
178+
// If the image requires a purchase plan, this value should equal the SKU. If the image
179+
// does not require a purchase plan, this field must be empty. Purchase plans must already
180+
// be accepted in the subscription. For more information see:
181+
// https://docs.microsoft.com/en-us/azure/virtual-machines/linux/cli-ps-findimage#check-the-purchase-plan-information
182+
// +optional
183+
PurchasePlanName string `json:"purchasePlanName,omitempty`
177184
}
178185

179186
type OSDisk struct {

machine/v1beta1/zz_generated.swagger_doc_generated.go

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)