Skip to content

Commit aa54dd7

Browse files
Adjusting MaxProperties for pod annotations and labels
1 parent 4adb4a7 commit aa54dd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/v1alpha1/common_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ type StatelessSpec struct {
4545

4646
// PodAnnotations are annotations to add to the pods.
4747
// +optional
48-
// +kubebuilder:validation:MaxProperties=48
48+
// +kubebuilder:validation:MaxProperties=20
4949
// +kubebuilder:validation:XValidation:rule="self.all(k, size(k) < 64 && size(self[k]) < 256)",message="annotation keys must be <64 chars and values <256 chars"
5050
PodAnnotations map[string]string `json:"podAnnotations,omitempty"`
5151

5252
// PodLabels are additional labels to add to the pods.
5353
// +optional
54-
// +kubebuilder:validation:MaxProperties=48
54+
// +kubebuilder:validation:MaxProperties=20
5555
// +kubebuilder:validation:XValidation:rule="self.all(k, size(k) < 64 && size(self[k]) < 64)",message="label keys and values must be <64 chars"
5656
PodLabels map[string]string `json:"podLabels,omitempty"`
5757
}

0 commit comments

Comments
 (0)