diff --git a/api/v1alpha1/drpolicy_types.go b/api/v1alpha1/drpolicy_types.go index 23be1e561a..5d7ccdc2c7 100644 --- a/api/v1alpha1/drpolicy_types.go +++ b/api/v1alpha1/drpolicy_types.go @@ -8,6 +8,7 @@ import ( ) // DRPolicySpec defines the desired state of DRPolicy +// +kubebuilder:validation:XValidation:rule="self == oldSelf", message="Value is immutable" type DRPolicySpec struct { // Important: Run "make" to regenerate code after modifying this file