From e2fde705f76205b18f96d606ede26f141a6e676d Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Thu, 2 Jan 2025 16:44:34 +0100 Subject: [PATCH] doc: update the vgs doc for beta API updating the VGS document to match the betav1 API. Signed-off-by: Madhu Rajanna (cherry picked from commit d65c62e743cc02697f6702de8887ec930d44fbd4) --- .../Ceph-CSI/ceph-csi-volume-group-snapshot.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/Storage-Configuration/Ceph-CSI/ceph-csi-volume-group-snapshot.md b/Documentation/Storage-Configuration/Ceph-CSI/ceph-csi-volume-group-snapshot.md index 33d58b807..3279767f4 100644 --- a/Documentation/Storage-Configuration/Ceph-CSI/ceph-csi-volume-group-snapshot.md +++ b/Documentation/Storage-Configuration/Ceph-CSI/ceph-csi-volume-group-snapshot.md @@ -16,7 +16,7 @@ refer to VolumeGroupSnapshot documentation - A `VolumeGroupSnapshotClass` is needed for the volume group snapshot to work. The purpose of a `VolumeGroupSnapshotClass` is defined in [the kubernetes -documentation](https://kubernetes.io/blog/2023/05/08/kubernetes-1-27-volume-group-snapshot-alpha/). +documentation](https://kubernetes.io/blog/2024/12/18/kubernetes-1-32-volume-group-snapshot-beta/). In short, as the documentation describes it: !!! info @@ -73,11 +73,11 @@ The snapshot will be ready to restore to a new PVC when `READYTOUSE` field of th Find the name of the snapshots created by the `VolumeGroupSnapshot` first by running: ```console -$ kubectl get volumegroupsnapshot/cephfs-groupsnapshot -o=jsonpath='{range .status.pvcVolumeSnapshotRefList[*]}PVC: {.persistentVolumeClaimRef.name}, Snapshot: {.volumeSnapshotRef.name}{"\n"}{end}' -PVC: cephfs-pvc, Snapshot: snapshot-9d21b143904c10f49ddc92664a7e8fe93c23387d0a88549c14337484ebaf1011-2024-09-12-3.49.13 +$ kubectl get volumesnapshot -o=jsonpath='{range .items[?(@.metadata.ownerReferences[0].name=="cephfs-groupsnapshot")]}{.metadata.name}{"\n"}{end}' +snapshot-a79d08c7b7e18953ec321e77be9c9646234593411136a3671d72e8a26ffd419c ``` -It will list the PVC's name followed by its snapshot name. +It will list the names of the snapshots created as part of the group. In [pvc-restore](https://github.com/rook/rook/tree/master/deploy/examples/csi/cephfs/pvc-restore.yaml),