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"
0 commit comments