mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 17:07:04 +02:00
11 lines
482 B
Smarty
11 lines
482 B
Smarty
{{- /*
|
|
Returns the value for serviceAccountName
|
|
*/ -}}
|
|
{{- define "bjw-s.common.lib.pod.field.serviceAccountName" -}}
|
|
{{- $rootContext := .ctx.rootContext -}}
|
|
|
|
{{- $serviceAccountValues := (mustDeepCopy $rootContext.Values.serviceAccount) -}}
|
|
{{- $serviceAccountObject := (include "bjw-s.common.lib.serviceAccount.valuesToObject" (dict "rootContext" $rootContext "id" "default" "values" $serviceAccountValues)) | fromYaml -}}
|
|
{{- $serviceAccountObject.name -}}
|
|
|
|
{{- end -}}
|