Skip to content

Commit 8fc263a

Browse files
committed
Mark all remaining ClusterClass array fields as atomic
Signed-off-by: Stefan Büringer buringerst@vmware.com
1 parent 18f7f63 commit 8fc263a

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
}
@@ -393,6 +395,7 @@ type MachineHealthCheckClass struct {
393395
// logical OR, i.e. if any of the conditions is met, the node is unhealthy.
394396
//
395397
// +optional
398+
// +listType=atomic
396399
// +kubebuilder:validation:MaxItems=100
397400
UnhealthyNodeConditions []UnhealthyNodeCondition `json:"unhealthyNodeConditions,omitempty"`
398401

@@ -745,6 +748,7 @@ type JSONSchemaProps struct {
745748
// enum is the list of valid values of the variable.
746749
// NOTE: Can be set for all types.
747750
// +optional
751+
// +listType=atomic
748752
// +kubebuilder:validation:MaxItems=100
749753
Enum []apiextensionsv1.JSON `json:"enum,omitempty"`
750754

@@ -975,6 +979,7 @@ type ClusterClassPatch struct {
975979
// Note: Patches will be applied in the order of the array.
976980
// Note: Exactly one of Definitions or External must be set.
977981
// +optional
982+
// +listType=atomic
978983
// +kubebuilder:validation:MaxItems=100
979984
Definitions []PatchDefinition `json:"definitions,omitempty"`
980985

@@ -995,6 +1000,7 @@ type PatchDefinition struct {
9951000
// Note: Patches will be applied in the order of the array.
9961001
// +kubebuilder:validation:MaxItems=100
9971002
// +required
1003+
// +listType=atomic
9981004
JSONPatches []JSONPatch `json:"jsonPatches"`
9991005
}
10001006

@@ -1251,6 +1257,7 @@ type ClusterClassStatus struct {
12511257

12521258
// variables is a list of ClusterClassStatusVariable that are defined for the ClusterClass.
12531259
// +optional
1260+
// +listType=atomic
12541261
// +kubebuilder:validation:MaxItems=1000
12551262
Variables []ClusterClassStatusVariable `json:"variables,omitempty"`
12561263

@@ -1296,8 +1303,9 @@ type ClusterClassStatusVariable struct {
12961303
DefinitionsConflict *bool `json:"definitionsConflict,omitempty"`
12971304

12981305
// definitions is a list of definitions for a variable.
1299-
// +kubebuilder:validation:MaxItems=100
13001306
// +required
1307+
// +listType=atomic
1308+
// +kubebuilder:validation:MaxItems=100
13011309
Definitions []ClusterClassStatusVariableDefinition `json:"definitions"`
13021310
}
13031311

0 commit comments

Comments
 (0)