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: images/snapshot-controller/client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -217,14 +217,13 @@ spec:
217
217
type: object
218
218
x-kubernetes-map-type: atomic
219
219
x-kubernetes-validations:
220
-
- message: both spec.volumeSnapshotRef.name and spec.volumeSnapshotRef.namespace
221
-
must be set
222
-
rule: has(self.name) && has(self.__namespace__)
220
+
- message: if spec.volumeSnapshotRef is set, both name and namespace must be specified together, or volumeSnapshotRef must be completely empty (VSC-only model)
# volumeSnapshotRef is optional to support VSC-only model (VSC without VolumeSnapshot)
228
227
type: object
229
228
x-kubernetes-validations:
230
229
- message: sourceVolumeMode is required once set
@@ -382,7 +381,7 @@ spec:
382
381
description: name of the VolumeSnapshotClass from which this snapshot was (or will be) created. Note that after provisioning, the VolumeSnapshotClass may be deleted or recreated with different set of values, and as such, should not be referenced post-snapshot creation.
383
382
type: string
384
383
volumeSnapshotRef:
385
-
description: volumeSnapshotRef specifies the VolumeSnapshot object to which this VolumeSnapshotContent object is bound. VolumeSnapshot.Spec.VolumeSnapshotContentName field must reference to this VolumeSnapshotContent's name for the bidirectional binding to be valid. For a pre-existing VolumeSnapshotContent object, name and namespace of the VolumeSnapshot object MUST be provided for binding to happen. This field is immutable after creation. Required.
384
+
description: volumeSnapshotRef specifies the VolumeSnapshot object to which this VolumeSnapshotContent object is bound. VolumeSnapshot.Spec.VolumeSnapshotContentName field must reference to this VolumeSnapshotContent's name for the bidirectional binding to be valid. For a pre-existing VolumeSnapshotContent object, name and namespace of the VolumeSnapshot object MUST be provided for binding to happen. This field is immutable after creation. Optional - can be empty for VSC-only model (VSC created without VolumeSnapshot, e.g., by VCR controller).
386
385
properties:
387
386
apiVersion:
388
387
description: API version of the referent.
@@ -410,7 +409,7 @@ spec:
410
409
- deletionPolicy
411
410
- driver
412
411
- source
413
-
-volumeSnapshotRef
412
+
# volumeSnapshotRef is optional to support VSC-only model (VSC without VolumeSnapshot)
414
413
type: object
415
414
status:
416
415
description: status represents the current information of a snapshot.
0 commit comments