{{- if .Values.deployment.serviceAccount.create -}} --- apiVersion: v1 kind: ServiceAccount metadata: name: {{ include "hydra.serviceAccountName" . }} {{- if .Release.Namespace }} namespace: {{ .Release.Namespace }} {{- end }} labels: {{- include "hydra.labels" . | nindent 4 }} {{- with .Values.deployment.serviceAccount.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} automountServiceAccountToken: false {{- end }}