{{- if .Values.serviceAccount.create -}} apiVersion: v1 {{- if .Values.imagePullSecretRef }} imagePullSecrets: - name: {{ .Values.imagePullSecretRef }} {{- end }} kind: ServiceAccount metadata: labels: app: {{ include "confluent-operator.name" . }} app.kubernetes.io/name: {{ include "confluent-operator.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/component: "confluent-operator" helm.sh/chart: {{ include "confluent-operator.chart" . }} name: {{ template "confluent-operator.service-account" . }} namespace: {{ .Release.Namespace }} {{- end }}