Add indentation to yamls
This commit is contained in:
@@ -54,7 +54,7 @@ created PVC in the given namespace.
|
|||||||
2. Identify the `VolumeSnapshotContent` bound to the above `VolumeSnapshot`.
|
2. Identify the `VolumeSnapshotContent` bound to the above `VolumeSnapshot`.
|
||||||
|
|
||||||
```
|
```
|
||||||
kubectl get volumesnapshot -n <namespace>
|
kubectl get volumesnapshot -n <namespace>
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Add the annotation [`snapshot.storage.kubernetes.io/allowVolumeModeChange`](/docs/reference/labels-annotations-taints/#snapshot-storage-kubernetes-io-allowvolumemodechange)
|
3. Add the annotation [`snapshot.storage.kubernetes.io/allowVolumeModeChange`](/docs/reference/labels-annotations-taints/#snapshot-storage-kubernetes-io-allowvolumemodechange)
|
||||||
@@ -64,11 +64,11 @@ to the `VolumeSnapshotContent`.
|
|||||||
user. The `VolumeSnapshotContent` annotation must look like following manifest fragment:
|
user. The `VolumeSnapshotContent` annotation must look like following manifest fragment:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
kind: VolumeSnapshotContent
|
kind: VolumeSnapshotContent
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
- snapshot.storage.kubernetes.io/allowVolumeModeChange: "true"
|
- snapshot.storage.kubernetes.io/allowVolumeModeChange: "true"
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
**Note**: For pre-provisioned `VolumeSnapshotContents`, you must take an extra
|
**Note**: For pre-provisioned `VolumeSnapshotContents`, you must take an extra
|
||||||
@@ -78,21 +78,21 @@ depending on the mode of the volume from which this snapshot was taken.
|
|||||||
An example is shown below:
|
An example is shown below:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: snapshot.storage.k8s.io/v1
|
apiVersion: snapshot.storage.k8s.io/v1
|
||||||
kind: VolumeSnapshotContent
|
kind: VolumeSnapshotContent
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
- snapshot.storage.kubernetes.io/allowVolumeModeChange: "true"
|
- snapshot.storage.kubernetes.io/allowVolumeModeChange: "true"
|
||||||
name: new-snapshot-content-test
|
name: new-snapshot-content-test
|
||||||
spec:
|
spec:
|
||||||
deletionPolicy: Delete
|
deletionPolicy: Delete
|
||||||
driver: hostpath.csi.k8s.io
|
driver: hostpath.csi.k8s.io
|
||||||
source:
|
source:
|
||||||
snapshotHandle: 7bdd0de3-aaeb-11e8-9aae-0242ac110002
|
snapshotHandle: 7bdd0de3-aaeb-11e8-9aae-0242ac110002
|
||||||
sourceVolumeMode: Filesystem
|
sourceVolumeMode: Filesystem
|
||||||
volumeSnapshotRef:
|
volumeSnapshotRef:
|
||||||
name: new-snapshot-test
|
name: new-snapshot-test
|
||||||
namespace: default
|
namespace: default
|
||||||
```
|
```
|
||||||
|
|
||||||
Repeat steps 1 to 3 for all `VolumeSnapshotContents` whose volume mode needs to be
|
Repeat steps 1 to 3 for all `VolumeSnapshotContents` whose volume mode needs to be
|
||||||
|
|||||||
Reference in New Issue
Block a user