Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[id="persistent-storage-csi-group-snapshots-create-admin_{context}"]
= Creating a volume group snapshot class

[role="_abstract"]
Before you can create volume group snapshots, the cluster administrator needs to create a `VolumeGroupSnapshotClass`.

This object describes how volume group snapshots should be created, including the driver information, the deletion policy, etc.
Expand All @@ -24,7 +25,7 @@ To create a `VolumeGroupSnapshotClass`:
.Example volume group snapshot class YAML file
[source, yaml]
----
apiVersion: groupsnapshot.storage.k8s.io/v1beta1
apiVersion: groupsnapshot.storage.k8s.io/v1beta2
kind: VolumeGroupSnapshotClass <1>
metadata:
name: csi-hostpath-groupsnapclass <2>
Expand Down
5 changes: 3 additions & 2 deletions modules/persistent-storage-csi-group-snapshots-create.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[id="persistent-storage-csi-group-snapshots-create_{context}"]
= Creating a volume group snapshot

[role="_abstract"]
When you create a `VolumeGroupSnapshot` object, {product-title} creates a volume group snapshot.

.Prerequisites
Expand Down Expand Up @@ -71,7 +72,7 @@ In this example, you are labeling PVC "pvc-0" and "pvc-1" to belong to group "my
.Example VolumeGroupSnapshot YAML file
[source, yaml]
----
apiVersion: groupsnapshot.storage.k8s.io/v1beta1
apiVersion: groupsnapshot.storage.k8s.io/v1beta2
kind: VolumeGroupSnapshot <1>
metadata:
name: <volume-group-snapshot-name> <2>
Expand Down Expand Up @@ -110,7 +111,7 @@ metadata:
name: snapshot-4dc1c53a29538b36e85003503a4bcac5dbde4cff59e81f1e3bb80b6c18c3fd03
namespace: default
ownerReferences:
- apiVersion: groupsnapshot.storage.k8s.io/v1beta1
- apiVersion: groupsnapshot.storage.k8s.io/v1beta2
kind: VolumeGroupSnapshot
name: my-groupsnapshot
uid: ba2d60c5-5082-4279-80c2-daa85f0af354
Expand Down