Skip to content

Commit 2bd59b6

Browse files
authored
Merge pull request kubernetes-csi#1184 from xing-yang/remove_volumeGroupSnapshotRef_check
Remove volumeGroupSnapshotRef immutable validation rule
2 parents be73f8a + ca171a5 commit 2bd59b6

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
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

vendor/github.com/kubernetes-csi/external-snapshotter/client/v8/apis/volumegroupsnapshot/v1alpha1/types.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)