Skip to content

Commit

Permalink
Add maxItems to all condition fields
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Büringer [email protected]
  • Loading branch information
sbueringer committed Oct 4, 2024
1 parent 9569cd6 commit 96bbe99
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions exp/addons/api/v1beta1/clusterresourceset_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ type ClusterResourceSetV1Beta2Status struct {
// +optional
// +listType=map
// +listMapKey=type
// +kubebuilder:validation:MaxItems=32
Conditions []metav1.Condition `json:"conditions,omitempty"`
}

Expand Down
1 change: 1 addition & 0 deletions exp/api/v1beta1/machinepool_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ type MachinePoolV1Beta2Status struct {
// +optional
// +listType=map
// +listMapKey=type
// +kubebuilder:validation:MaxItems=32
Conditions []metav1.Condition `json:"conditions,omitempty"`

// readyReplicas is the number of ready replicas for this MachinePool. A machine is considered ready when Machine's Ready condition is true.
Expand Down
3 changes: 3 additions & 0 deletions internal/test/builder/v1beta2_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ type Phase1ObjStatusV1Beta2 struct {
// +optional
// +listType=map
// +listMapKey=type
// +kubebuilder:validation:MaxItems=32
Conditions []metav1.Condition `json:"conditions,omitempty"`
}

Expand Down Expand Up @@ -201,6 +202,7 @@ type Phase2ObjStatus struct {
// +optional
// +listType=map
// +listMapKey=type
// +kubebuilder:validation:MaxItems=32
Conditions []metav1.Condition `json:"conditions,omitempty"`

// +optional
Expand Down Expand Up @@ -284,6 +286,7 @@ type Phase3ObjStatus struct {
// +optional
// +listType=map
// +listMapKey=type
// +kubebuilder:validation:MaxItems=32
Conditions []metav1.Condition `json:"conditions,omitempty"`
}

Expand Down

0 comments on commit 96bbe99

Please sign in to comment.