{{- if not .Values.global.serviceAccount.name -}} apiVersion: v1 kind: ServiceAccount metadata: name: {{ include "nifi.fullname" . }} labels: {{- include "nifi.labels" . | nindent 4 }} {{- with .Values.global.serviceAccount.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} {{- end }}