Skip to content

Commit af4da09

Browse files
committed
Update documentation and user guides for beta snapshotter
1 parent b581803 commit af4da09

File tree

4 files changed

+35
-21
lines changed

4 files changed

+35
-21
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ that represents availability by zone.
7070
| Snapshots | Alpha | 1.13 | Any | v0.3.0 | Alpha |
7171
| Resize (Expand) | Alpha | 1.14 | 1.14 | v0.6.0 | Alpha |
7272
| Resize (Expand) | Beta | 1.16 | 1.16 | v0.7.0 | Stable |
73-
73+
| Snapshots | Beta | 1.17 | Any | master | Stable |
7474

7575
### Future Features
7676

docs/kubernetes/user-guides/snapshots.md

+27-12
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Kubernetes Snapshots User Guide (Alpha)
1+
# Kubernetes Snapshots User Guide (Beta)
22

3-
>**Attention:** VolumeSnapshot is an alpha feature. Make sure you have enabled it in Kubernetes API server using `--feature-gates=VolumeSnapshotDataSource=true` flag.
3+
>**Attention:** Attention: VolumeSnapshot is a Beta feature enabled by default in Kubernetes 1.17+. Attention: VolumeSnapshot is only available in the driver version "master".
44
5-
### Install Driver with alpha snapshot feature
5+
### [Install Driver](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/blob/master/docs/kubernetes/user-guides/driver-install.md) with beta snapshot feature.
66

77
1. [One-time per project] Create GCP service account for the CSI driver and set required roles
88

@@ -79,19 +79,34 @@
7979
The output is similar to this:
8080
8181
```yaml
82-
apiVersion: snapshot.storage.k8s.io/v1alpha1
8382
kind: VolumeSnapshot
8483
metadata:
85-
...
86-
name: snapshot-source-pvc
87-
namespace: default
88-
...
84+
creationTimestamp: "2020-05-13T21:48:08Z"
85+
finalizers:
86+
- snapshot.storage.kubernetes.io/volumesnapshot-as-source-protection
87+
- snapshot.storage.kubernetes.io/volumesnapshot-bound-protection
88+
generation: 1
89+
managedFields:
90+
- apiVersion: snapshot.storage.k8s.io/v1beta1
91+
fieldsType: FieldsV1
92+
fieldsV1:
93+
f:status:
94+
f:readyToUse: {}
95+
manager: snapshot-controller
96+
operation: Update
97+
time: "2020-05-13T21:49:42Z"
98+
name: snapshot-source-pvc
99+
namespace: default
100+
resourceVersion: "531499"
101+
selfLink: /apis/snapshot.storage.k8s.io/v1beta1/namespaces/default/volumesnapshots/snapshot-source-pvc
102+
uid: a10fd0ff-b868-4527-abe7-74d5b420731e
89103
spec:
90-
snapshotClassName: default-snapshot-class
91-
snapshotContentName: snapcontent-b408076b-720b-11e9-b9e3-42010a800014
92-
...
104+
source:
105+
persistentVolumeClaimName: source-pvc
106+
volumeSnapshotClassName: csi-gce-pd-snapshot-class
93107
status:
94-
creationTime: "2019-05-09T03:37:01Z"
108+
boundVolumeSnapshotContentName: snapcontent-a10fd0ff-b868-4527-abe7-74d5b420731e
109+
creationTime: "2020-05-13T21:48:43Z"
95110
readyToUse: true
96111
restoreSize: 6Gi
97112
```
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
apiVersion: snapshot.storage.k8s.io/v1alpha1
1+
apiVersion: snapshot.storage.k8s.io/v1beta1
22
kind: VolumeSnapshotClass
33
metadata:
4-
annotations:
5-
snapshot.storage.kubernetes.io/is-default-class: "true"
6-
name: default-snapshot-class
7-
snapshotter: pd.csi.storage.gke.io
4+
name: csi-gce-pd-snapshot-class
5+
driver: pd.csi.storage.gke.io
6+
deletionPolicy: Delete
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
apiVersion: snapshot.storage.k8s.io/v1alpha1
1+
apiVersion: snapshot.storage.k8s.io/v1beta1
22
kind: VolumeSnapshot
33
metadata:
44
name: snapshot-source-pvc
55
spec:
6+
volumeSnapshotClassName: csi-gce-pd-snapshot-class
67
source:
7-
kind: PersistentVolumeClaim
8-
name: source-pvc
8+
persistentVolumeClaimName: source-pvc

0 commit comments

Comments
 (0)