{{- if .Values.serviceAccount.create -}} --- apiVersion: v1 kind: ServiceAccount metadata: {{- if .Values.serviceAccount.name }} name: {{ .Values.serviceAccount.name }} {{- else }} name: {{ include "chartmuseum.fullname" . }} {{- end }} labels: {{ include "chartmuseum.labels.standard" . | indent 4 }} {{- if .Values.serviceAccount.annotations }} annotations: {{ toYaml .Values.serviceAccount.annotations | nindent 4 }} {{- end }} {{- end -}}