Skip to content

Commit

Permalink
fix template function
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGoyette committed Oct 31, 2024
1 parent 3a9f0a0 commit 83edbc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/operator-wandb/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 83edbc4

Please sign in to comment.