# helm_charts_halyard-sa.yaml
{{- if .Values.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
  {{- if .Values.serviceAccount.halyardName }}
  name: {{ .Values.serviceAccount.halyardName }}
  {{- else }}
  name: {{ template "spinnaker.fullname" . }}-halyard
  {{- end }}
  namespace: {{ .Release.Namespace }}
  labels:
{{ include "spinnaker.standard-labels" . | indent 4 }}
  {{- if .Values.serviceAccount.serviceAccountAnnotations }}
  annotations:
{{ toYaml .Values.serviceAccount.serviceAccountAnnotations | indent 4 }}
  {{- end }}
{{- end }}