apiVersion: v1 kind: ServiceAccount metadata: name: {{ include "mysql.serviceAccountName" . }} namespace: {{ .Release.Namespace }} labels: {{- include "cluster.labels" . | nindent 4 }} {{- include "cluster.selectorLabels" . | nindent 4 }} {{- with .Values.global.labels }} {{- toYaml . | nindent 4 }} {{- end }} {{- with .Values.serviceAccount.labels }} {{- toYaml . | nindent 4 }} {{- end }} annotations: {{- with .Values.global.annotations }} {{- toYaml . | nindent 4 }} {{- end }} {{- with .Values.serviceAccount.annotations }} {{- toYaml . | nindent 4 }} {{- end }}