You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// timeAdded represents the time at which the taint was added.
73
-
// It is only written for NoExecute taints.
74
-
//
75
-
// +optional
76
-
TimeAdded*metav1.Time`json:"timeAdded,omitempty"`
77
-
}
78
-
79
48
// NodeReadinessRuleSpec defines the desired state of NodeReadinessRule.
80
49
typeNodeReadinessRuleSpecstruct {
81
50
// conditions contains a list of the Node conditions that defines the specific
@@ -101,7 +70,11 @@ type NodeReadinessRuleSpec struct {
101
70
// on Nodes that meet the defined condition criteria.
102
71
//
103
72
// +required
104
-
TaintTaintSpec`json:"taint,omitempty,omitzero"`
73
+
// +kubebuilder:validation:XValidation:rule="self.key.startsWith('readiness.k8s.io/')",message="taint key must start with 'readiness.k8s.io/'"
74
+
// +kubebuilder:validation:XValidation:rule="self.key.size() >= 17 && self.key.size() <= 253",message="taint key length must be between 17 and 253 characters"
75
+
// +kubebuilder:validation:XValidation:rule="!has(self.value) || self.value.size() <= 63",message="taint value length must be at most 63 characters"
76
+
// +kubebuilder:validation:XValidation:rule="self.effect in ['NoSchedule', 'PreferNoSchedule', 'NoExecute']",message="taint effect must be one of 'NoSchedule', 'PreferNoSchedule', 'NoExecute'"
0 commit comments