Skip to content

Commit

Permalink
VolumeSnapshot (#787)
Browse files Browse the repository at this point in the history
Tasks:
- [x] Create VolumeSnapshot
- [x] Restore VolumeSnapshot
  • Loading branch information
suaas21 authored and tamalsaha committed May 23, 2019
1 parent bde38a8 commit cb2289d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
7 changes: 7 additions & 0 deletions chart/stash/templates/cluster-role.yaml
Expand Up @@ -113,3 +113,10 @@ rules:
{{- range $x := .Values.additionalPodSecurityPolicies }}
- {{ $x }}
{{- end }}
- apiGroups:
- snapshot.storage.k8s.io
resources:
- volumesnapshots
- volumesnapshotcontents
- volumesnapshotclasses
verbs: ["create", "get", "list", "watch", "patch"]
15 changes: 14 additions & 1 deletion deploy/rbac-list.yaml
Expand Up @@ -60,7 +60,7 @@ rules:
- ""
resources:
- persistentvolumeclaims
verbs: ["get","list","watch"]
verbs: ["get","list","watch", "create", "patch"]
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -94,6 +94,7 @@ rules:
- clusterroles
- roles
- rolebindings
- clusterrolebindings
verbs: ["get", "create", "delete", "patch"]
- apiGroups:
- apps.openshift.io
Expand All @@ -110,6 +111,18 @@ rules:
- stash-backupsession-cron
- stash-backup-job
- stash-restore-job
- apiGroups:
- snapshot.storage.k8s.io
resources:
- volumesnapshots
- volumesnapshotcontents
- volumesnapshotclasses
verbs: ["create", "get", "list", "watch", "patch"]
- apiGroups:
- storage.k8s.io
resources:
- storageclasses
verbs: ["get"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand Down

0 comments on commit cb2289d

Please sign in to comment.