Skip to content

Commit 518c663

Browse files
committed
Mark all remaining ClusterClass array fields as atomic
Signed-off-by: Stefan Büringer buringerst@vmware.com
1 parent 60991c8 commit 518c663

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

api/core/v1beta2/clusterclass_types.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,15 @@ type ClusterClassSpec struct {
119119
// variables defines the variables which can be configured
120120
// in the Cluster topology and are then used in patches.
121121
// +optional
122+
// +listType=atomic
122123
// +kubebuilder:validation:MaxItems=1000
123124
Variables []ClusterClassVariable `json:"variables,omitempty"`
124125

125126
// patches defines the patches which are applied to customize
126127
// referenced templates of a ClusterClass.
127128
// Note: Patches will be applied in the order of the array.
128129
// +optional
130+
// +listType=atomic
129131
// +kubebuilder:validation:MaxItems=1000
130132
Patches []ClusterClassPatch `json:"patches,omitempty"`
131133
}
@@ -392,6 +394,7 @@ type MachineHealthCheckClass struct {
392394
// logical OR, i.e. if any of the conditions is met, the node is unhealthy.
393395
//
394396
// +optional
397+
// +listType=atomic
395398
// +kubebuilder:validation:MaxItems=100
396399
UnhealthyNodeConditions []UnhealthyNodeCondition `json:"unhealthyNodeConditions,omitempty"`
397400

@@ -743,6 +746,7 @@ type JSONSchemaProps struct {
743746
// enum is the list of valid values of the variable.
744747
// NOTE: Can be set for all types.
745748
// +optional
749+
// +listType=atomic
746750
// +kubebuilder:validation:MaxItems=100
747751
Enum []apiextensionsv1.JSON `json:"enum,omitempty"`
748752

@@ -973,6 +977,7 @@ type ClusterClassPatch struct {
973977
// Note: Patches will be applied in the order of the array.
974978
// Note: Exactly one of Definitions or External must be set.
975979
// +optional
980+
// +listType=atomic
976981
// +kubebuilder:validation:MaxItems=100
977982
Definitions []PatchDefinition `json:"definitions,omitempty"`
978983

@@ -993,6 +998,7 @@ type PatchDefinition struct {
993998
// Note: Patches will be applied in the order of the array.
994999
// +kubebuilder:validation:MaxItems=100
9951000
// +required
1001+
// +listType=atomic
9961002
JSONPatches []JSONPatch `json:"jsonPatches"`
9971003
}
9981004

@@ -1249,6 +1255,7 @@ type ClusterClassStatus struct {
12491255

12501256
// variables is a list of ClusterClassStatusVariable that are defined for the ClusterClass.
12511257
// +optional
1258+
// +listType=atomic
12521259
// +kubebuilder:validation:MaxItems=1000
12531260
Variables []ClusterClassStatusVariable `json:"variables,omitempty"`
12541261

@@ -1294,8 +1301,9 @@ type ClusterClassStatusVariable struct {
12941301
DefinitionsConflict *bool `json:"definitionsConflict,omitempty"`
12951302

12961303
// definitions is a list of definitions for a variable.
1297-
// +kubebuilder:validation:MaxItems=100
12981304
// +required
1305+
// +listType=atomic
1306+
// +kubebuilder:validation:MaxItems=100
12991307
Definitions []ClusterClassStatusVariableDefinition `json:"definitions"`
13001308
}
13011309

0 commit comments

Comments
 (0)