41ef6ace63b8a22b4db46de86f3bfef1836aa9d4
[ric-plt/ric-dep.git] / helm / infrastructure / subcharts / kong / templates / service-account.yaml
1 {{- if and (or .Values.deployment.kong.enabled .Values.ingressController.enabled) .Values.deployment.serviceAccount.create -}}
2 apiVersion: v1
3 kind: ServiceAccount
4 metadata:
5   name: {{ template "kong.serviceAccountName" . }}
6   namespace: {{ template "kong.namespace" . }}
7   {{- if .Values.deployment.serviceAccount.annotations }}
8   annotations:
9   {{- range $key, $value := .Values.deployment.serviceAccount.annotations }}
10     {{ $key }}: {{ $value | quote }}
11   {{- end }}
12   {{- end }}
13   labels:
14     {{- include "kong.metaLabels" . | nindent 4 }}
15 {{- end -}}