{{- if ( and .Values.postdeploy.serviceAccount.enabled ( not .Values.postdeploy.serviceAccount.preexisting ) ) -}} apiVersion: v1 kind: ServiceAccount metadata: name: {{ include "postdeploy.serviceAccountName" . }} labels: {{- include "postdeploy.labels" . | nindent 4 }} {{- with .Values.postdeploy.serviceAccount.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} automountServiceAccountToken: {{ .Values.postdeploy.serviceAccount.automountServiceAccountToken }} {{- end }}