Skip to content

Commit 4ac5b74

Browse files
authored
Merge pull request #475 from leonardoce/examples
Add VolumeGroupSnapshot examples
2 parents a1a0031 + f58147a commit 4ac5b74

File tree

4 files changed

+24
-8
lines changed

4 files changed

+24
-8
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1
2+
kind: VolumeGroupSnapshot
3+
metadata:
4+
name: new-groupsnapshot-demo
5+
spec:
6+
source:
7+
selector:
8+
matchLabels:
9+
# The PVCs will need to have this label for it to be
10+
# included in the VolumeGroupSnapshot
11+
app.kubernetes.io/name: postgresql
12+
volumeGroupSnapshotClassName: csi-hostpath-groupsnapclass
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1
2+
kind: VolumeGroupSnapshotClass
3+
metadata:
4+
name: csi-hostpath-groupsnapclass
5+
deletionPolicy: Delete
6+
driver: hostpath.csi.k8s.io

examples/csi-snapshot-v1beta1.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: snapshot.storage.k8s.io/v1
2+
kind: VolumeSnapshotClass
3+
metadata:
4+
name: csi-hostpath-snapclass
5+
deletionPolicy: Delete
6+
driver: hostpath.csi.k8s.io

0 commit comments

Comments
 (0)