Add RBAC support - issue 107 (#128)
* Add RBAC support * RBAC support issue 107 changes requested
This commit is contained in:
committed by
Robbie Zhang
parent
f6bdcad085
commit
88bafc701b
@@ -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 }}
|
||||
Reference in New Issue
Block a user