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
`snapshotHandle`is the unique identifier of the volume snapshot created on the storage backend. This field is required for the pre-provisioned snapshots. It specifies the CSI snapshot id on the storage system that this `VolumeSnapshotContent` represents.
150
152
153
+
`sourceVolumeMode`is the mode of the volume whose snapshot is taken. The value of the `sourceVolumeMode` field can be either `Filesystem` or `Block`. If the source volume mode is not specified, Kubernetes treats the snapshot as if the source volume's mode is unknown. Support for this field can only be enabled in VolumeSnapshot client v6.0.0 and higher. Visit the [VolumeSnapshot Release page](https://github.com/kubernetes-csi/external-snapshotter/releases) for more information.
154
+
155
+
## Converting the volume mode of a Snapshot {#convert-volume-mode}
156
+
157
+
This feature is only present for `VolumeSnapshotContents` created with client version `v6.0.0` onwards.
158
+
The volume mode can be either `Filesystem` or `Block`. If not specified, it indicates the volume mode is unknown.
159
+
If you want to allow users to create a `PersistentVolumeClaim` from an existing `VolumeSnapshot`, but with a
160
+
different volume mode than the source, the annotation `snapshot.storage.kubernetes.io/allowVolumeModeChange: "true"`
161
+
needs to be added to the `VolumeSnapshotContent` that corresponds to the `VolumeSnapshot`. For pre-provisioned snapshots,
162
+
`Spec.SourceVolumeMode`needs to be populated by the cluster administrator.
163
+
An example `VolumeSnapshotContent` resource with this feature enabled would look like:
0 commit comments