Skip to content

Commit

Permalink
Removed immutability from godoc
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhAgniRedhat committed May 14, 2024
1 parent e7a9f55 commit d551387
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 413 deletions.
5 changes: 3 additions & 2 deletions machine/v1beta1/types_azureprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,9 @@ type AzureMachineProviderSpec struct {
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"
// 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"`
}
Expand Down

0 comments on commit d551387

Please sign in to comment.