Skip to content

Commit

Permalink
update example snapshot and snapshotclass yamls
Browse files Browse the repository at this point in the history
Signed-off-by: prateekpandey14 <[email protected]>
  • Loading branch information
prateekpandey14 committed Feb 3, 2020
1 parent e3f991f commit 60c784c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 22 deletions.
8 changes: 0 additions & 8 deletions deploy/csi-operator-ubuntu-18.04.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -658,11 +658,7 @@ spec:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
- name: csi-snapshotter
<<<<<<< HEAD
image: quay.io/k8scsi/csi-snapshotter:v1.2.2
=======
image: quay.io/k8scsi/csi-snapshotter:v2.0.1
>>>>>>> fix(csi): handle duplicate snapshot request for csi-snapshot
args:
- "--csi-address=$(ADDRESS)"
env:
Expand All @@ -679,11 +675,7 @@ spec:
- "--leader-election=false"
imagePullPolicy: IfNotPresent
- name: csi-provisioner
<<<<<<< HEAD
image: quay.io/k8scsi/csi-provisioner:v1.4.0
=======
image: quay.io/k8scsi/csi-provisioner:v1.5.0
>>>>>>> fix(csi): handle duplicate snapshot request for csi-snapshot
imagePullPolicy: IfNotPresent
args:
- "--provisioner=cstor.csi.openebs.io"
Expand Down
8 changes: 0 additions & 8 deletions deploy/csi-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -654,11 +654,7 @@ spec:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
- name: csi-snapshotter
<<<<<<< HEAD
image: quay.io/k8scsi/csi-snapshotter:v1.2.2
=======
image: quay.io/k8scsi/csi-snapshotter:v2.0.1
>>>>>>> fix(csi): handle duplicate snapshot request for csi-snapshot
args:
- "--csi-address=$(ADDRESS)"
env:
Expand All @@ -675,11 +671,7 @@ spec:
- "--leader-election=false"
imagePullPolicy: IfNotPresent
- name: csi-provisioner
<<<<<<< HEAD
image: quay.io/k8scsi/csi-provisioner:v1.4.0
=======
image: quay.io/k8scsi/csi-provisioner:v1.5.0
>>>>>>> fix(csi): handle duplicate snapshot request for csi-snapshot
imagePullPolicy: IfNotPresent
args:
- "--provisioner=cstor.csi.openebs.io"
Expand Down
7 changes: 5 additions & 2 deletions deploy/snapshot-class.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
kind: VolumeSnapshotClass
apiVersion: snapshot.storage.k8s.io/v1alpha1
apiVersion: snapshot.storage.k8s.io/v1beta1
metadata:
name: csi-cstor-snapshotclass
namespace: kube-system
annotations:
snapshot.storage.kubernetes.io/is-default-class: "true"
snapshotter: cstor.csi.openebs.io
driver: cstor.csi.openebs.io
deletionPolicy: Delete
---

9 changes: 5 additions & 4 deletions examples/csi-snapshot.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
apiVersion: snapshot.storage.k8s.io/v1alpha1
---
apiVersion: snapshot.storage.k8s.io/v1beta1
kind: VolumeSnapshot
metadata:
name: demo-snapshot
spec:
snapshotClassName: csi-cstor-snapshotclass
volumeSnapshotClassName: cstor-csi-snapclass
source:
name: demo-csivol-claim
kind: PersistentVolumeClaim
persistentVolumeClaimName: demo-csivol-claim
---

0 comments on commit 60c784c

Please sign in to comment.