updating helm/docker files and database config files
[it/otf.git] / otf-helm / otf / charts / databases / mysqldb / templates / serviceaccount.yaml
diff --git a/otf-helm/otf/charts/databases/mysqldb/templates/serviceaccount.yaml b/otf-helm/otf/charts/databases/mysqldb/templates/serviceaccount.yaml
new file mode 100644 (file)
index 0000000..36ce6b3
--- /dev/null
@@ -0,0 +1,11 @@
+{{- if .Values.serviceAccount.create }}
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+  name: {{ template "mysql.serviceAccountName" . }}
+  labels:
+    app: {{ template "mysql.fullname" . }}
+    chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
+    release: "{{ .Release.Name }}"
+    heritage: "{{ .Release.Service }}"
+{{- end }}