Skip to content

Commit fac28ef

Browse files
Add MaxItems=32 to conditions
1 parent eb96f92 commit fac28ef

24 files changed

+24
-0
lines changed

api/v1beta1/cluster_types.go

+1
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ type ClusterV1Beta2Status struct {
488488
// +optional
489489
// +listType=map
490490
// +listMapKey=type
491+
// +kubebuilder:validation:MaxItems=32
491492
Conditions []metav1.Condition `json:"conditions,omitempty"`
492493

493494
// controlPlane groups all the observations about Cluster's ControlPlane current state.

api/v1beta1/clusterclass_types.go

+1
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,7 @@ type ClusterClassV1Beta2Status struct {
957957
// +optional
958958
// +listType=map
959959
// +listMapKey=type
960+
// +kubebuilder:validation:MaxItems=32
960961
Conditions []metav1.Condition `json:"conditions,omitempty"`
961962
}
962963

api/v1beta1/machine_types.go

+1
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ type MachineV1Beta2Status struct {
289289
// +optional
290290
// +listType=map
291291
// +listMapKey=type
292+
// +kubebuilder:validation:MaxItems=32
292293
Conditions []metav1.Condition `json:"conditions,omitempty"`
293294
}
294295

api/v1beta1/machinedeployment_types.go

+1
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ type MachineDeploymentV1Beta2Status struct {
312312
// +optional
313313
// +listType=map
314314
// +listMapKey=type
315+
// +kubebuilder:validation:MaxItems=32
315316
Conditions []metav1.Condition `json:"conditions,omitempty"`
316317

317318
// readyReplicas is the number of ready replicas for this MachineDeployment. A machine is considered ready when Machine's Ready condition is true.

api/v1beta1/machinehealthcheck_types.go

+1
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ type MachineHealthCheckV1Beta2Status struct {
161161
// +optional
162162
// +listType=map
163163
// +listMapKey=type
164+
// +kubebuilder:validation:MaxItems=32
164165
Conditions []metav1.Condition `json:"conditions,omitempty"`
165166
}
166167

api/v1beta1/machineset_types.go

+1
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ type MachineSetV1Beta2Status struct {
202202
// +optional
203203
// +listType=map
204204
// +listMapKey=type
205+
// +kubebuilder:validation:MaxItems=32
205206
Conditions []metav1.Condition `json:"conditions,omitempty"`
206207

207208
// readyReplicas is the number of ready replicas for this MachineSet. A machine is considered ready when Machine's Ready condition is true.

bootstrap/kubeadm/api/v1beta1/kubeadmconfig_types.go

+1
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ type KubeadmConfigV1Beta2Status struct {
455455
// +optional
456456
// +listType=map
457457
// +listMapKey=type
458+
// +kubebuilder:validation:MaxItems=32
458459
Conditions []metav1.Condition `json:"conditions,omitempty"`
459460
}
460461

bootstrap/kubeadm/config/crd/bases/bootstrap.cluster.x-k8s.io_kubeadmconfigs.yaml

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/cluster.x-k8s.io_clusterclasses.yaml

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/cluster.x-k8s.io_clusters.yaml

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/cluster.x-k8s.io_machinedeployments.yaml

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/cluster.x-k8s.io_machinehealthchecks.yaml

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/cluster.x-k8s.io_machines.yaml

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/cluster.x-k8s.io_machinesets.yaml

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

controlplane/kubeadm/api/v1beta1/kubeadm_control_plane_types.go

+1
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ type KubeadmControlPlaneV1Beta2Status struct {
321321
// +optional
322322
// +listType=map
323323
// +listMapKey=type
324+
// +kubebuilder:validation:MaxItems=32
324325
Conditions []metav1.Condition `json:"conditions,omitempty"`
325326

326327
// readyReplicas is the number of ready replicas for this KubeadmControlPlane. A machine is considered ready when Machine's Ready condition is true.

controlplane/kubeadm/config/crd/bases/controlplane.cluster.x-k8s.io_kubeadmcontrolplanes.yaml

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/infrastructure/docker/api/v1beta1/dockercluster_types.go

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ type DockerClusterV1Beta2Status struct {
109109
// +optional
110110
// +listType=map
111111
// +listMapKey=type
112+
// +kubebuilder:validation:MaxItems=32
112113
Conditions []metav1.Condition `json:"conditions,omitempty"`
113114
}
114115

test/infrastructure/docker/api/v1beta1/dockermachine_types.go

+1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ type DockerMachineV1Beta2Status struct {
111111
// +optional
112112
// +listType=map
113113
// +listMapKey=type
114+
// +kubebuilder:validation:MaxItems=32
114115
Conditions []metav1.Condition `json:"conditions,omitempty"`
115116
}
116117

test/infrastructure/docker/config/crd/bases/infrastructure.cluster.x-k8s.io_dockerclusters.yaml

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/infrastructure/docker/config/crd/bases/infrastructure.cluster.x-k8s.io_dockermachines.yaml

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/infrastructure/inmemory/api/v1alpha1/inmemorycluster_types.go

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ type InMemoryClusterV1Beta2Status struct {
6161
// +optional
6262
// +listType=map
6363
// +listMapKey=type
64+
// +kubebuilder:validation:MaxItems=32
6465
Conditions []metav1.Condition `json:"conditions,omitempty"`
6566
}
6667

test/infrastructure/inmemory/api/v1alpha1/inmemorymachine_types.go

+1
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ type InMemoryMachineV1Beta2Status struct {
159159
// +optional
160160
// +listType=map
161161
// +listMapKey=type
162+
// +kubebuilder:validation:MaxItems=32
162163
Conditions []metav1.Condition `json:"conditions,omitempty"`
163164
}
164165

test/infrastructure/inmemory/config/crd/bases/infrastructure.cluster.x-k8s.io_inmemoryclusters.yaml

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/infrastructure/inmemory/config/crd/bases/infrastructure.cluster.x-k8s.io_inmemorymachines.yaml

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)