{{- if and .Values.starrocksOperator.enabled .Values.global.rbac.create }} apiVersion: v1 kind: ServiceAccount metadata: name: {{ template "operator.serviceAccountName" . }} namespace: {{ template "operator.namespace" . }} {{- with .Values.global.rbac.serviceAccount.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} {{- with .Values.global.rbac.serviceAccount.labels }} labels: {{- toYaml . | nindent 4 }} {{- end }} {{- end }}