20 lines
539 B
YAML
20 lines
539 B
YAML
{{- if .Values.rbac.create -}}
|
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
labels:
|
|
app: {{ template "name" . }}
|
|
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
|
|
heritage: {{ .Release.Service }}
|
|
release: {{ .Release.Name }}
|
|
name: {{ template "fullname" . }}
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: {{ template "fullname" . }}
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: {{ template "fullname" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
{{- end -}}
|