Skip to content

Commit

Permalink
Add RBAC permission for generic-garbage-collector (#56)
Browse files Browse the repository at this point in the history
xref: stashed/stash#910

Signed-off-by: hossainemruz <[email protected]>
  • Loading branch information
hossainemruz authored Jun 1, 2020
1 parent be006f6 commit 4e3474a
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions charts/stash/templates/gerbage-collector-rbac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: appscode:stash:garbage-collector
annotations:
"helm.sh/hook": pre-install,pre-upgrade
"helm.sh/hook-delete-policy": before-hook-creation
rules:
- apiGroups:
- policy
verbs: ["use"]
resources:
- podsecuritypolicies
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: appscode:stash:garbage-collector
annotations:
"helm.sh/hook": pre-install,pre-upgrade
"helm.sh/hook-delete-policy": before-hook-creation
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: appscode:stash:garbage-collector
subjects:
- kind: ServiceAccount
name: generic-garbage-collector
namespace: kube-system

0 comments on commit 4e3474a

Please sign in to comment.