diff --git a/charts/operator-wandb/templates/_helpers.tpl b/charts/operator-wandb/templates/_helpers.tpl index d4116151..1ba922b0 100644 --- a/charts/operator-wandb/templates/_helpers.tpl +++ b/charts/operator-wandb/templates/_helpers.tpl @@ -65,9 +65,9 @@ Create the name of the service account to use Weave Trace service account name */}} {{- define "weaveTrace.serviceAccountName" -}} -{{- if .Values.global."weave-trace".serviceAccount.create }} -{{- default (include "weaveTrace.fullname" .) .Values.global."weave-trace".serviceAccount.name }} +{{- if index .Values.global "weave-trace" "serviceAccount" "create" }} +{{- default (include "weaveTrace.fullname" .) index .Values.global "weave-trace" "serviceAccount" "name" }} {{- else }} -{{- default "default" .Values.global."weave-trace".serviceAccount.name }} +{{- default "default" index .Values.global "weave-trace" "serviceAccount" "name" }} {{- end }} {{- end }} \ No newline at end of file