diff --git a/api/v1/shared_types.go b/api/v1/shared_types.go index bc315fd4f..5d5d3e763 100644 --- a/api/v1/shared_types.go +++ b/api/v1/shared_types.go @@ -137,7 +137,7 @@ type LabelSelector struct { // The matching logic is an AND operation on all entries. // // +required - // +kubebuilder:validation:MinItems=1 - // +kubebuilder:validation:MaxItems=64 + // +kubebuilder:validation:MinProperties=1 + // +kubebuilder:validation:MaxProperties=64 MatchLabels map[LabelKey]LabelValue `json:"matchLabels,omitempty"` }