{{/* vim: set filetype=mustache: */}} {{/* Create the name of the service account to use */}} {{- define "gateway.apiportal.serviceAccountName" -}} {{- if .Values.apiportal.serviceAccount.create }} {{- default (printf "%s-%s" (include "gateway.fullname" .) "apiportal") .Values.aga.serviceAccount.name }} {{- else }} {{- default "default" .Values.apiportal.serviceAccount.name }} {{- end }} {{- end }} {{/* Secret name for mysql db credentials, either the existing one or the one created by this chart */}} {{- define "gateway.apiportal.secretName" -}} {{- default (printf "%s-%s" (include "gateway.fullname" .) "apiportal-db") .Values.apiportal.mysql.existingSecret.name }} {{- end }}