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
Copy file name to clipboardExpand all lines: crd/overlayextensionconfig/api/v1alpha1/overlayextensionconfig_types.go
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -31,9 +31,13 @@ type OverlayExtensionConfigList struct {
31
31
}
32
32
33
33
// OverlayExtensionConfigSpec defines the desired state of OverlayExtensionConfig.
34
+
// +kubebuilder:validation:XValidation:rule="!has(oldSelf.extensionIPRange) || has(self.extensionIPRange)", message="ExtensionIPRange is required once set"
34
35
typeOverlayExtensionConfigSpecstruct {
35
36
// ExtensionIPRange field defines a CIDR that should be able to reach routing domain ip addresses.
36
37
// +kubebuilder:validation:Optional
38
+
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Value is immutable"
APIVersion defines the versioned schema of this representation of an object.
33
-
Servers should convert recognized schemas to the latest internal value, and
34
-
may reject unrecognized values.
35
-
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
31
+
description: 'APIVersion defines the versioned schema of this representation
32
+
of an object. Servers should convert recognized schemas to the latest
33
+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
36
34
type: string
37
35
kind:
38
-
description: |-
39
-
Kind is a string value representing the REST resource this object represents.
40
-
Servers may infer this from the endpoint the client submits requests to.
41
-
Cannot be updated.
42
-
In CamelCase.
43
-
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
36
+
description: 'Kind is a string value representing the REST resource this
37
+
object represents. Servers may infer this from the endpoint the client
38
+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
44
39
type: string
45
40
metadata:
46
41
type: object
@@ -49,9 +44,17 @@ spec:
49
44
properties:
50
45
extensionIPRange:
51
46
description: ExtensionIPRange field defines a CIDR that should be
52
-
able to reach routing domain ip addresses.
47
+
able to reach routing domain ip addresses. 43 is max length of IPv6
0 commit comments