Skip to content

Commit

Permalink
Added new Field for CapacityReservationGroupID
Browse files Browse the repository at this point in the history
Signed-off-by: anirudhAgniRedhat <aagnihot@redhat.com>
  • Loading branch information
anirudhAgniRedhat committed Apr 23, 2024
1 parent 2624175 commit 6aa122b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions machine/v1beta1/types_azureprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ 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.
// It is optional but may not be changed once set.
// +kubebuilder:validation:XValidation:rule="oldSelf == '' || self == oldSelf",message="CapacityReservationGroupID is immutable once set"
// +optional
CapacityReservationGroupID string `json:"capacityReservationGroupID,omitempty"`
}

// SpotVMOptions defines the options relevant to running the Machine on Spot VMs
Expand Down
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 @@ -20558,6 +20558,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. It is optional but may not be changed once set.",
"type": "string"
},
"credentialsSecret": {
"description": "CredentialsSecret is a reference to the secret with Azure credentials.",
"$ref": "#/definitions/io.k8s.api.core.v1.SecretReference"
Expand Down

0 comments on commit 6aa122b

Please sign in to comment.