Add support for prometheus
[ric-plt/ric-dep.git] / helm / infrastructure / subcharts / kong / templates / controller-service-account.yaml
old mode 100755 (executable)
new mode 100644 (file)
index 050b860..c6a7554
@@ -1,12 +1,9 @@
-{{- if and .Values.ingressController.enabled .Values.ingressController.serviceAccount.create -}}
+{{- if or .Values.podSecurityPolicy.enabled (and .Values.ingressController.enabled .Values.ingressController.serviceAccount.create) -}}
 apiVersion: v1
 kind: ServiceAccount
 metadata:
   name: {{ template "kong.serviceAccountName" . }}
   namespace: {{ .Release.namespace }}
   labels:
-    app: {{ template "kong.name" . }}
-    chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
-    release: "{{ .Release.Name }}"
-    heritage: "{{ .Release.Service }}"
+    {{- include "kong.metaLabels" . | nindent 4 }}
 {{- end -}}