Skip to content

Commit

Permalink
Merge pull request openshift#1866 from anirudhAgniRedhat/anirudh/Capc…
Browse files Browse the repository at this point in the history
…ityReservationGroupID

CFE-1047: Add the field "CapacityReservationGroupID" to "AzureMachineProviderSpec" in openshift/api
  • Loading branch information
openshift-merge-bot[bot] authored May 21, 2024
2 parents 101e19d + 57ae3a5 commit 8af21b7
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 28 deletions.
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 @@ -20311,6 +20311,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

0 comments on commit 8af21b7

Please sign in to comment.