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