Skip to content

Commit 08f377d

Browse files
authored
Merge pull request #374 from humblec/deploy
v1 snapshot object has to be used instead of alpha and beta in deployment
2 parents 1c64d7a + ed5c90b commit 08f377d

File tree

4 files changed

+19
-20
lines changed

4 files changed

+19
-20
lines changed

docs/example-snapshots-1.17-and-later.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,23 @@ Ensure your volumesnapshotclass was created during hostpath deployment:
2121
> Namespace:
2222
> Labels: <none>
2323
> Annotations: kubectl.kubernetes.io/last-applied-configuration:
24-
> {"apiVersion":"snapshot.storage.k8s.io/v1beta1","deletionPolicy":"Delete","driver":"hostpath.csi.k8s.io","kind":"VolumeSnapshotClass","met...
25-
> API Version: snapshot.storage.k8s.io/v1beta1
24+
> {"apiVersion":"snapshot.storage.k8s.io/v1","deletionPolicy":"Delete","driver":"hostpath.csi.k8s.io","kind":"VolumeSnapshotClass","met...
25+
> API Version: snapshot.storage.k8s.io/v1
2626
> Deletion Policy: Delete
2727
> Driver: hostpath.csi.k8s.io
2828
> Kind: VolumeSnapshotClass
2929
> Metadata:
3030
> Creation Timestamp: 2020-03-09T20:53:32Z
3131
> Generation: 1
3232
> Resource Version: 938
33-
> Self Link: /apis/snapshot.storage.k8s.io/v1beta1/volumesnapshotclasses/csi-hostpath-snapclass
33+
> Self Link: /apis/snapshot.storage.k8s.io/v1/volumesnapshotclasses/csi-hostpath-snapclass
3434
> UID: 8d2320cb-85fc-4908-9895-5ff8867169e2
3535
> Events: <none>
3636
> ```
3737
3838
After having created the `csi-pvc` as described in the deployment validation,
3939
use the volume snapshot class to dynamically create a volume snapshot:
40-
> - `$ kubectl apply -f examples/csi-snapshot-v1beta1.yaml`
40+
> - `$ kubectl apply -f examples/csi-snapshot-v1.yaml`
4141
> ```
4242
> volumesnapshot.snapshot.storage.k8s.io/new-snapshot-demo created
4343
> ```
@@ -61,8 +61,8 @@ use the volume snapshot class to dynamically create a volume snapshot:
6161
> Namespace: default
6262
> Labels: <none>
6363
> Annotations: kubectl.kubernetes.io/last-applied-configuration:
64-
> {"apiVersion":"snapshot.storage.k8s.io/v1beta1","kind":"VolumeSnapshot","metadata":{"annotations":{},"name":"new-snapshot-demo","namespace...
65-
> API Version: snapshot.storage.k8s.io/v1beta1
64+
> {"apiVersion":"snapshot.storage.k8s.io/v1","kind":"VolumeSnapshot","metadata":{"annotations":{},"name":"new-snapshot-demo","namespace...
65+
> API Version: snapshot.storage.k8s.io/v1
6666
> Kind: VolumeSnapshot
6767
> Metadata:
6868
> Creation Timestamp: 2020-03-09T21:45:04Z
@@ -71,7 +71,7 @@ use the volume snapshot class to dynamically create a volume snapshot:
7171
> snapshot.storage.kubernetes.io/volumesnapshot-bound-protection
7272
> Generation: 1
7373
> Resource Version: 11146
74-
> Self Link: /apis/snapshot.storage.k8s.io/v1beta1/namespaces/default/volumesnapshots/new-snapshot-demo
74+
> Self Link: /apis/snapshot.storage.k8s.io/v1/namespaces/default/volumesnapshots/new-snapshot-demo
7575
> UID: 1b461d4e-6279-4f1d-9910-61d35d80c888
7676
> Spec:
7777
> Source:
@@ -92,15 +92,15 @@ use the volume snapshot class to dynamically create a volume snapshot:
9292
> Namespace:
9393
> Labels: <none>
9494
> Annotations: <none>
95-
> API Version: snapshot.storage.k8s.io/v1beta1
95+
> API Version: snapshot.storage.k8s.io/v1
9696
> Kind: VolumeSnapshotContent
9797
> Metadata:
9898
> Creation Timestamp: 2020-03-09T21:45:04Z
9999
> Finalizers:
100100
> snapshot.storage.kubernetes.io/volumesnapshotcontent-bound-protection
101101
> Generation: 1
102102
> Resource Version: 11145
103-
> Self Link: /apis/snapshot.storage.k8s.io/v1beta1/volumesnapshotcontents/snapcontent-1b461d4e-6279-4f1d-9910-61d35d80c888
103+
> Self Link: /apis/snapshot.storage.k8s.io/v1/volumesnapshotcontents/snapcontent-1b461d4e-6279-4f1d-9910-61d35d80c888
104104
> UID: 665657cd-4461-476c-9cdb-5c0490c58945
105105
> Spec:
106106
> Deletion Policy: Delete
@@ -109,7 +109,7 @@ use the volume snapshot class to dynamically create a volume snapshot:
109109
> Volume Handle: 42bdc1e0-624e-11ea-beee-42d40678b2d1
110110
> Volume Snapshot Class Name: csi-hostpath-snapclass
111111
> Volume Snapshot Ref:
112-
> API Version: snapshot.storage.k8s.io/v1beta1
112+
> API Version: snapshot.storage.k8s.io/v1
113113
> Kind: VolumeSnapshot
114114
> Name: new-snapshot-demo
115115
> Namespace: default

examples/csi-block-pvc-snapshot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: snapshot.storage.k8s.io/v1alpha1
1+
apiVersion: snapshot.storage.k8s.io/v1
22
kind: VolumeSnapshot
33
metadata:
44
name: raw-pvc-snapshot

examples/csi-snapshot-v1.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: snapshot.storage.k8s.io/v1
2+
kind: VolumeSnapshot
3+
metadata:
4+
name: new-snapshot-demo
5+
spec:
6+
volumeSnapshotClassName: csi-hostpath-snapclass
7+
source:
8+
persistentVolumeClaimName: csi-pvc

examples/csi-snapshot.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)