diff --git a/charts/common/templates/spawner/_serviceaccount.tpl b/charts/common/templates/spawner/_serviceaccount.tpl index 87288ccc..89f1cc2a 100644 --- a/charts/common/templates/spawner/_serviceaccount.tpl +++ b/charts/common/templates/spawner/_serviceaccount.tpl @@ -8,7 +8,7 @@ Renders the serviceAccount objects required by the chart. {{- $saValues := $serviceAccount -}} {{/* set the default nameOverride to the serviceAccount name */}} - {{- if and (not $saValues.nameOverride) (ne $name (include "tc.common.lib.util.service.primary" $)) -}} + {{- if and (not $saValues.nameOverride) (ne $name (include "tc.common.lib.util.serviceaccount.primary" $)) -}} {{- $_ := set $saValues "nameOverride" $name -}} {{ end -}}