Skip to content

Commit

Permalink
add CEL for DRPolicy immutability
Browse files Browse the repository at this point in the history
Signed-off-by: rakeshgm <[email protected]>
(cherry picked from commit 3033b77d3646fa0ccffc2a21bba35b1071fa34bc)
  • Loading branch information
rakeshgm committed Jan 16, 2024
1 parent 918b3d7 commit 4ce676d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/v1alpha1/drpolicy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4ce676d

Please sign in to comment.