Move Kong to infra deployment
[it/dep.git] / ric-infra / 30-Kong / helm / kong / charts / kong / templates / controller-service-account.yaml
diff --git a/ric-infra/30-Kong/helm/kong/charts/kong/templates/controller-service-account.yaml b/ric-infra/30-Kong/helm/kong/charts/kong/templates/controller-service-account.yaml
new file mode 100755 (executable)
index 0000000..050b860
--- /dev/null
@@ -0,0 +1,12 @@
+{{- if 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 }}"
+{{- end -}}