mirror of
https://github.com/hanzokms/kubernetes-operator.git
synced 2026-10-30 20:30:51 +00:00
14 lines
605 B
YAML
14 lines
605 B
YAML
{{- if and (eq .Values.controllerManager.serviceAccount.create false) (eq .Values.controllerManager.serviceAccount.name "") }}
|
|
{{- fail "if controllerManager.serviceAccount.create = false, a controllerManager.serviceAccount.name must be provided" }}
|
|
{{- end }}
|
|
|
|
{{- if .Values.controllerManager.serviceAccount.create }}
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: {{ include "secrets-operator.serviceAccountName" . }}
|
|
labels:
|
|
{{- include "secrets-operator.labels" . | nindent 4 }}
|
|
annotations:
|
|
{{- toYaml .Values.controllerManager.serviceAccount.annotations | nindent 4 }}
|
|
{{- end }} |