Skip to content

Commit 7ad7935

Browse files
authored
Merge pull request #612 from Madhu-1/update-csi-snap-restore-doc
update volumegroupsnapshot to beta1
2 parents a0d9df3 + fbb0eb7 commit 7ad7935

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

book/src/group-snapshot-restore-feature.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
Status | Min K8s Version | Max K8s Version | snapshot-controller Version | snapshot-validation-webhook Version | CSI external-snapshotter sidecar Version | external-provisioner Version
66
--|--|--|--|--|--|--
7-
Alpha | 1.27 | - | 7.0+ | 7.0+ | 7.0+ | 4.0+
7+
Alpha | 1.27 | 1.32 | 7.0+ | 7.0+ | 7.0+ | 4.0+
8+
Beta | 1.32 | - | 8.2+ | 8.2+ | 8.2+ | 5.1+
89

910
**IMPORTANT**: The validation logic for VolumeGroupSnapshots and VolumeGroupSnapshotContents has been replaced by CEL validation rules. The validating webhook is now only being used for VolumeGroupSnapshotClasses to ensure that there's at most one default class per CSI Driver. The validation webhook is deprecated and will be removed in the next release
1011

@@ -131,35 +132,34 @@ kubectl label pvc hpvc hpvc-2 app.kubernetes.io/name=postgresql
131132

132133
Create a _VolumeGroupSnapshotClass_:
133134
```
134-
kubectl create -f groupsnapshotclass-v1alpha1.yaml
135+
kubectl create -f groupsnapshotclass-v1beta1.yaml
135136
```
136137

137138
Create a _VolumeGroupSnapshot_:
138139
```
139-
kubectl create -f groupsnapshot-v1alpha1.yaml
140+
kubectl create -f groupsnapshot-v1beta1.yaml
141+
```
142+
143+
Once the _VolumeGroupSnapshot_ is ready, list the _VolumeSnapshot_ whose owner is the _VolumeGroupSnapshot_:
144+
145+
```
146+
kubectl get volumegroupsnapshot
147+
NAME READYTOUSE VOLUMEGROUPSNAPSHOTCLASS VOLUMEGROUPSNAPSHOTCONTENT CREATIONTIME AGE
148+
new-groupsnapshot-demo true csi-hostpath-groupsnapclass groupsnapcontent-fb7a1c20-54d3-444c-a604-b3ff0f4a8801 4m57s 5m26s
140149
```
141150

142-
Once the _VolumeGroupSnapshot_ is ready, the `pvcVolumeSnapshotRefList` status field will contain the names of the generated _VolumeSnapshot_ objects:
143151
```
144-
kubectl get volumegroupsnapshot new-groupsnapshot-demo -o yaml | sed -n '/pvcVolumeSnapshotRefList/,$p'
152+
kubectl get volumesnapshot -o=jsonpath='{range .items[?(@.metadata.ownerReferences[0].name=="new-groupsnapshot-demo")]}{.metadata.name}{"\n"}{end}'
145153
146-
pvcVolumeSnapshotRefList:
147-
- persistentVolumeClaimRef:
148-
name: hpvc
149-
volumeSnapshotRef:
150-
name: snapshot-4bcc4a322a473abf32babe3df5779d14349542b1f0eb6f9dab0466a85c59cd42-2024-06-19-12.35.17
151-
- persistentVolumeClaimRef:
152-
name: hpvc-2
153-
volumeSnapshotRef:
154-
name: snapshot-62bd0be591e1e10c22d51748cd4a53c0ae8bf52fabb482bee7bc51f8ff9d9589-2024-06-19-12.35.17
155-
readyToUse: true
154+
snapshot-4dc1c53a29538b36e85003503a4bcac5dbde4cff59e81f1e3bb80b6c18c3fd03
155+
snapshot-fbfe59eff570171765df664280910c3bf1a4d56e233a5364cd8cb0152a35965b
156156
```
157157

158158
Create a _PVC_ from a _VolumeSnapshot_ that is part of the group snapshot:
159159
```
160160
# In the command below, the volume snapshot name should be chosen from
161161
# the ones listed in the output of the previous command
162-
sed 's/new-snapshot-demo-v1/snapshot-4bcc4a322a473abf32babe3df5779d14349542b1f0eb6f9dab0466a85c59cd42-2024-06-19-12.35.17/' restore.yaml | kubectl create -f -
162+
sed 's/new-snapshot-demo-v1/snapshot-4dc1c53a29538b36e85003503a4bcac5dbde4cff59e81f1e3bb80b6c18c3fd03/' restore.yaml | kubectl create -f -
163163
```
164164

165165
## Examples

0 commit comments

Comments
 (0)