{{- if not .Values.leastPrivilege }} {{- if ne .Values.serviceAccount "default"}} apiVersion: v1 kind: ServiceAccount metadata: name: {{ .Values.serviceAccount }} namespace: {{ .Release.Namespace }} labels: chart: {{ template "neuvector.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} {{- end }} {{- end }}