charts/teleport-kube-agent-13.3.8/templates/updater/_helpers.tpl
2024-08-15 22:45:43 +08:00

8 lines
344 B
Smarty

{{/*
Create the name of the service account to use
if serviceAccount is not defined or serviceAccount.name is empty, use .Release.Name
*/}}
{{- define "teleport-kube-agent-updater.serviceAccountName" -}}
{{- coalesce .Values.updater.serviceAccount.name (include "teleport-kube-agent.serviceAccountName" . | printf "%s-updater") -}}
{{- end -}}