1 {{- if and .Values.ingressController.rbac.create .Values.ingressController.enabled -}}
2 apiVersion: rbac.authorization.k8s.io/v1beta1
5 name: {{ template "kong.fullname" . }}
6 namespace: {{ .Release.Namespace }}
8 app: {{ template "kong.name" . }}
9 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
10 release: "{{ .Release.Name }}"
11 heritage: "{{ .Release.Service }}"
13 apiGroup: rbac.authorization.k8s.io
15 name: {{ template "kong.fullname" . }}
17 - kind: ServiceAccount
18 name: {{ template "kong.serviceAccountName" . }}
19 namespace: {{ .Release.Namespace }}