Skip to content

Commit d475986

Browse files
authored
Merge pull request #4830 from arkadeepsen/capacity-reservation
Update godoc of CapacityReservationGroupID of AzureMachineSpec
2 parents 4b1d9c1 + de135dc commit d475986

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

api/v1beta1/azuremachine_types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ type AzureMachineSpec struct {
145145

146146
// CapacityReservationGroupID specifies the capacity reservation group resource id that should be
147147
// used for allocating the virtual machine.
148+
// The field size should be greater than 0 and the field input must start with '/'.
149+
// The input for capacityReservationGroupID must be similar to '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}'.
150+
// The keys which are used should be among 'subscriptions', 'providers' and 'resourcegroups' followed by valid ID or names respectively.
151+
// It is optional but may not be changed once set.
148152
// +optional
149153
CapacityReservationGroupID *string `json:"capacityReservationGroupID,omitempty"`
150154
}

config/crd/bases/infrastructure.cluster.x-k8s.io_azuremachines.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ spec:
114114
description: |-
115115
CapacityReservationGroupID specifies the capacity reservation group resource id that should be
116116
used for allocating the virtual machine.
117+
The field size should be greater than 0 and the field input must start with '/'.
118+
The input for capacityReservationGroupID must be similar to '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}'.
119+
The keys which are used should be among 'subscriptions', 'providers' and 'resourcegroups' followed by valid ID or names respectively.
120+
It is optional but may not be changed once set.
117121
type: string
118122
dataDisks:
119123
description: DataDisk specifies the parameters that are used to add

config/crd/bases/infrastructure.cluster.x-k8s.io_azuremachinetemplates.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ spec:
128128
description: |-
129129
CapacityReservationGroupID specifies the capacity reservation group resource id that should be
130130
used for allocating the virtual machine.
131+
The field size should be greater than 0 and the field input must start with '/'.
132+
The input for capacityReservationGroupID must be similar to '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}'.
133+
The keys which are used should be among 'subscriptions', 'providers' and 'resourcegroups' followed by valid ID or names respectively.
134+
It is optional but may not be changed once set.
131135
type: string
132136
dataDisks:
133137
description: DataDisk specifies the parameters that are used

0 commit comments

Comments
 (0)