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
// matchConditions defines the matchConditions field of the resulting ValidatingWebhookConfiguration.
134
+
// When present, must contain between 1 and 64 match conditions.
135
+
// When not specified, the webhook will match all requests according to its other selectors.
136
+
// FIXME(chrischdi): should we embed this type? Or maintain our own copy of MatchCondition?
126
137
// +listType=map
127
138
// +listMapKey=name
128
139
// +kubebuilder:validation:MinItems=1
@@ -226,8 +237,10 @@ type CRDCompatibilityRequirementStatus struct {
226
237
// exist, as we may legitimately place requirements on it before it is
227
238
// created. The observed CRD is given in status.observedCRD, which will be
228
239
// empty if no CRD is observed.
240
+
// When present, must be between 1 and 253 characters and conform to RFC 1123 subdomain format:
241
+
// lowercase alphanumeric characters, '-' or '.', starting and ending with alphanumeric characters.
242
+
// When not specified, the requirement applies to any CRD name discovered from the compatibility schema.
229
243
// This field is optional.
230
-
// crdRef must be at most 253 characters in length and must consist only of lower-case alphanumeric characters, periods (.) and hyphens (-). Each period separated label must start and end with an alphanumeric character and be at most 63 characters in length.
231
244
// +kubebuilder:validation:MinLength=1
232
245
// +kubebuilder:validation:MaxLength=253
233
246
// +kubebuilder:validation:XValidation:rule="!format.dns1123Subdomain().validate(self).hasValue()",message="a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character."
@@ -239,6 +252,8 @@ type CRDCompatibilityRequirementStatus struct {
239
252
// +kubebuilder:validation:MinProperties=1
240
253
typeObservedCRDstruct {
241
254
// uid is the uid of the observed CRD.
255
+
// Must be a valid UUID consisting of lowercase hexadecimal digits in 5 hyphenated blocks (8-4-4-4-12 format).
256
+
// Length must be between 1 and 36 characters.
242
257
// +kubebuilder:validation:MinLength=1
243
258
// +kubebuilder:validation:MaxLength=36
244
259
// +kubebuilder:validation:Format=uuid
@@ -247,6 +262,7 @@ type ObservedCRD struct {
247
262
UIDstring`json:"uid,omitempty"`
248
263
249
264
// generation is the observed generation of the CRD.
265
+
// Must be a positive integer (minimum value of 1).
0 commit comments