Skip to content

Commit e60f5c0

Browse files
committed
Remove volumeGroupSnapshotRef immutable validation rule
1 parent 8d54afd commit e60f5c0

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

client/apis/volumegroupsnapshot/v1alpha1/types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@ type VolumeGroupSnapshotContentSpec struct {
281281
// This field is immutable after creation.
282282
// Required.
283283
// +kubebuilder:validation:XValidation:rule="has(self.name) && has(self.__namespace__)",message="both volumeGroupSnapshotRef.name and volumeGroupSnapshotRef.namespace must be set"
284-
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="volumeGroupSnapshotRef is immutable"
285284
VolumeGroupSnapshotRef core_v1.ObjectReference `json:"volumeGroupSnapshotRef" protobuf:"bytes,1,opt,name=volumeGroupSnapshotRef"`
286285

287286
// DeletionPolicy determines whether this VolumeGroupSnapshotContent and the

client/config/crd/groupsnapshot.storage.k8s.io_volumegroupsnapshotcontents.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,6 @@ spec:
237237
- message: both volumeGroupSnapshotRef.name and volumeGroupSnapshotRef.namespace
238238
must be set
239239
rule: has(self.name) && has(self.__namespace__)
240-
- message: volumeGroupSnapshotRef is immutable
241-
rule: self == oldSelf
242240
required:
243241
- deletionPolicy
244242
- driver

0 commit comments

Comments
 (0)