Skip to content

Commit

Permalink
upgrade snapshot to v2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jichenjc committed Mar 16, 2020
1 parent 7491ab5 commit cbb7d37
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 7 deletions.
5 changes: 3 additions & 2 deletions examples/cinder-csi-plugin/snapshot/example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ provisioner: cinder.csi.openstack.org

---

apiVersion: snapshot.storage.k8s.io/v1alpha1
apiVersion: snapshot.storage.k8s.io/v1beta1
kind: VolumeSnapshotClass
metadata:
name: csi-cinder-snapclass
snapshotter: cinder.csi.openstack.org
driver: cinder.csi.openstack.org
deletionPolicy: Delete

---

Expand Down
4 changes: 2 additions & 2 deletions examples/cinder-csi-plugin/snapshot/snapshotcreate.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: snapshot.storage.k8s.io/v1alpha1
apiVersion: snapshot.storage.k8s.io/v1beta1
kind: VolumeSnapshot
metadata:
name: new-snapshot-demo
spec:
snapshotClassName: csi-cinder-snapclass
volumeSnapshotClassName: csi-cinder-snapclass
source:
name: pvc-snapshot-demo
kind: PersistentVolumeClaim
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ rules:
resources: ["volumesnapshots"]
verbs: ["get", "list", "watch", "update"]
- apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshots/status"]
resources: ["volumesnapshotcontents/status"]
verbs: ["update"]
- apiGroups: ["apiextensions.k8s.io"]
resources: ["customresourcedefinitions"]
Expand Down
4 changes: 2 additions & 2 deletions manifests/cinder-csi-plugin/cinder-csi-controllerplugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ spec:
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
- name: csi-snapshotter
image: quay.io/k8scsi/csi-snapshotter:v1.2.2
- name: csi-snapshot-controller
image: quay.io/k8scsi/snapshot-controller:v2.0.1
args:
- "--csi-address=$(ADDRESS)"
env:
Expand Down
11 changes: 11 additions & 0 deletions manifests/cinder-csi-plugin/cinder-csi-nodeplugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ spec:
mountPath: /csi
- name: registration-dir
mountPath: /registration
- name: csi-snapshotter
image: quay.io/k8scsi/csi-snapshotter:v2.0.1
args:
- "--csi-address=$(ADDRESS)"
env:
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock
imagePullPolicy: Always
volumeMounts:
- mountPath: /var/lib/csi/sockets/pluginproxy/
name: socket-dir
- name: cinder-csi-plugin
securityContext:
privileged: true
Expand Down

0 comments on commit cbb7d37

Please sign in to comment.