{{- if .Values.serviceAccount.create }} apiVersion: v1 kind: ServiceAccount metadata: name: {{ .Values.serviceAccount.name }} namespace: {{ .Values.namespaceOverride }} labels: {{- include "backstage.labels" . | nindent 4 }} {{- with .Values.serviceAccount.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} automountServiceAccountToken: true {{- end }} {{- if .Values.cloudSqlProxyServiceAccount.create }} --- apiVersion: v1 kind: ServiceAccount metadata: name: {{ .Values.cloudSqlProxyServiceAccount.name }} namespace: {{ .Values.namespaceOverride }} labels: {{- include "backstage.labels" . | nindent 4 }} app: backstage-cloudsql-proxy {{- with .Values.cloudSqlProxyServiceAccount.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} automountServiceAccountToken: true {{- end }}