Merge pull request #23053 from shuuji3/en/fix-code-block-volume-snapshot

Fix the code block on concepts/storage/volume-snapshots page
This commit is contained in:
Kubernetes Prow Robot
2020-08-16 14:20:18 -07:00
committed by GitHub
@@ -94,14 +94,14 @@ using the attribute `volumeSnapshotClassName`. If nothing is set, then the defau
For pre-provisioned snapshots, you need to specify a `volumeSnapshotContentName` as the source for the snapshot as shown in the following example. The `volumeSnapshotContentName` source field is required for pre-provisioned snapshots. For pre-provisioned snapshots, you need to specify a `volumeSnapshotContentName` as the source for the snapshot as shown in the following example. The `volumeSnapshotContentName` source field is required for pre-provisioned snapshots.
``` ```yaml
apiVersion: snapshot.storage.k8s.io/v1beta1 apiVersion: snapshot.storage.k8s.io/v1beta1
kind: VolumeSnapshot kind: VolumeSnapshot
metadata: metadata:
name: test-snapshot name: test-snapshot
spec: spec:
source: source:
volumeSnapshotContentName: test-content volumeSnapshotContentName: test-content
``` ```
## Volume Snapshot Contents ## Volume Snapshot Contents