diff --git a/changelogs/unreleased/10520-krishhna24 b/changelogs/unreleased/10520-krishhna24 new file mode 100644 index 000000000..6f6f184de --- /dev/null +++ b/changelogs/unreleased/10520-krishhna24 @@ -0,0 +1 @@ +Fix the VolumeGroupSnapshotClass example in the VolumeGroupSnapshot docs diff --git a/site/content/docs/main/volume-group-snapshots.md b/site/content/docs/main/volume-group-snapshots.md index e62a75624..9b77979ce 100644 --- a/site/content/docs/main/volume-group-snapshots.md +++ b/site/content/docs/main/volume-group-snapshots.md @@ -160,15 +160,14 @@ kubectl get volumegroupsnapshotclass -o wide **Important:** The VolumeGroupSnapshotClass must have the label `velero.io/csi-volumegroupsnapshot-class: "true"` for Velero to automatically discover and use it: ```yaml -apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 +apiVersion: groupsnapshot.storage.k8s.io/v1beta2 kind: VolumeGroupSnapshotClass metadata: name: csi-vgs-class labels: velero.io/csi-volumegroupsnapshot-class: "true" -spec: - driver: ebs.csi.aws.com - deletionPolicy: Delete +driver: ebs.csi.aws.com +deletionPolicy: Delete ``` Verify your VolumeGroupSnapshotClass has the correct label: diff --git a/site/content/docs/v1.18/volume-group-snapshots.md b/site/content/docs/v1.18/volume-group-snapshots.md index e62a75624..9b77979ce 100644 --- a/site/content/docs/v1.18/volume-group-snapshots.md +++ b/site/content/docs/v1.18/volume-group-snapshots.md @@ -160,15 +160,14 @@ kubectl get volumegroupsnapshotclass -o wide **Important:** The VolumeGroupSnapshotClass must have the label `velero.io/csi-volumegroupsnapshot-class: "true"` for Velero to automatically discover and use it: ```yaml -apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 +apiVersion: groupsnapshot.storage.k8s.io/v1beta2 kind: VolumeGroupSnapshotClass metadata: name: csi-vgs-class labels: velero.io/csi-volumegroupsnapshot-class: "true" -spec: - driver: ebs.csi.aws.com - deletionPolicy: Delete +driver: ebs.csi.aws.com +deletionPolicy: Delete ``` Verify your VolumeGroupSnapshotClass has the correct label: