helm-charts/element-call/templates/serviceaccount.yaml

15 lines
456 B
YAML

{{- with .Values.service.call }}
{{- if .serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "element-call.serviceAccountName" (dict "root" $ "ctx" . "suffix" "") }}
labels:
{{- include "element-call.labels" $ | nindent 4 }}
{{- with .serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
automountServiceAccountToken: {{ .serviceAccount.automount }}
{{- end }}
{{- end }}