Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release-4.15] CFE-1047: Added new field for capacityReservationGroupID in AzureMachineProviderSpec #1925

Open
wants to merge 1 commit into
base: release-4.15
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions machine/v1beta1/types_azureprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,13 @@ type AzureMachineProviderSpec struct {
// This is useful for debugging software based launch issues.
// +optional
Diagnostics AzureDiagnostics `json:"diagnostics,omitempty"`
// capacityReservationGroupID specifies the capacity reservation group resource id that should be
// used for allocating the virtual machine.
// The field size should be greater than 0 and the field input must start with '/'.
// The input for capacityReservationGroupID must be similar to '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}'.
// The keys which are used should be among 'subscriptions', 'providers' and 'resourcegroups' followed by valid ID or names respectively.
// +optional
CapacityReservationGroupID string `json:"capacityReservationGroupID,omitempty"`
}

// SpotVMOptions defines the options relevant to running the Machine on Spot VMs
Expand Down
57 changes: 29 additions & 28 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.

7 changes: 7 additions & 0 deletions openapi/generated_openapi/zz_generated.openapi.go

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

4 changes: 4 additions & 0 deletions openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -19872,6 +19872,10 @@
"description": "AvailabilitySet specifies the availability set to use for this instance. Availability set should be precreated, before using this field.",
"type": "string"
},
"capacityReservationGroupID": {
"description": "capacityReservationGroupID specifies the capacity reservation group resource id that should be used for allocating the virtual machine. The field size should be greater than 0 and the field input must start with '/'. The input for capacityReservationGroupID must be similar to '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}'. The keys which are used should be among 'subscriptions', 'providers' and 'resourcegroups' followed by valid ID or names respectively.",
"type": "string"
},
"credentialsSecret": {
"description": "CredentialsSecret is a reference to the secret with Azure credentials.",
"$ref": "#/definitions/io.k8s.api.core.v1.SecretReference"
Expand Down