Sync up to the latest it/dep commit.
[ric-plt/ric-dep.git] / helm / infrastructure / subcharts / kong / templates / controller-rbac-cluster-role-binding.yaml
1 {{- if and .Values.ingressController.rbac.create .Values.ingressController.enabled -}}
2 apiVersion: rbac.authorization.k8s.io/v1beta1
3 kind: ClusterRoleBinding
4 metadata:
5   name:  {{ template "kong.fullname" . }}
6   labels:
7     app: {{ template "kong.name" . }}
8     chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
9     release: "{{ .Release.Name }}"
10     heritage: "{{ .Release.Service }}"
11 roleRef:
12   apiGroup: rbac.authorization.k8s.io
13   kind: ClusterRole
14   name:  {{ template "kong.fullname" . }}
15 subjects:
16   - kind: ServiceAccount
17     name: {{ template "kong.serviceAccountName" . }}
18     namespace: {{ .Release.Namespace }}
19 {{- end -}}