helm-charts/ocrserver/templates/serviceaccount.yaml

17 lines
506 B
YAML
Raw Permalink Normal View History

2025-02-21 16:18:29 +01:00
{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "ocrserver.serviceAccountName" . }}
labels:
{{- include "ocrserver.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": pre-install
"helm.sh/hook-weight": "5"
"helm.sh/hook-delete-policy": hook-failed
{{- with .Values.serviceAccount.annotations }}
2025-02-21 16:18:29 +01:00
{{- toYaml . | nindent 4 }}
{{- end }}
2025-02-21 16:18:29 +01:00
automountServiceAccountToken: {{ .Values.serviceAccount.automount }}
{{- end }}