Skip to content

Commit

Permalink
snapshot: add rbac for distributed snapshotting
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz "WanzenBug" Wanzenböck <[email protected]>
  • Loading branch information
WanzenBug committed Jun 15, 2022
1 parent 3b23540 commit ca8c40c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/snapshot-controller/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
type: application
name: snapshot-controller
version: 1.5.0
version: 1.5.1
appVersion: "v6.0.1"
icon: https://raw.githubusercontent.com/piraeusdatastore/piraeus/master/artwork/sandbox-artwork/icon/color.svg
maintainers:
Expand Down
5 changes: 5 additions & 0 deletions charts/snapshot-controller/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ rules:
- apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshots/status"]
verbs: ["update", "patch"]
{{- if get .Values.args "enableDistributedSnapshotting" }}
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "list", "watch"]
{{- end }}
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
Expand Down

0 comments on commit ca8c40c

Please sign in to comment.