Add RBAC support - issue 107 (#128)

* Add RBAC support

* RBAC support issue 107 changes requested
This commit is contained in:
Shane Peckham
2018-04-13 20:45:25 +01:00
committed by Robbie Zhang
parent f6bdcad085
commit 88bafc701b
9 changed files with 145 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
{{ if .Values.rbac.install }}
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: {{ template "fullname" . }}-role-binding
subjects:
- kind: ServiceAccount
name: {{ template "fullname" . }}-service-account
namespace: default
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ .Values.rbac.roleRef }}
{{ end }}