diff --git a/library/common/templates/spawner/_cnpg.tpl b/library/common/templates/spawner/_cnpg.tpl index 7b231115..62f04ff9 100644 --- a/library/common/templates/spawner/_cnpg.tpl +++ b/library/common/templates/spawner/_cnpg.tpl @@ -24,7 +24,7 @@ {{- if eq $enabled "true" -}} {{/* Handle version string */}} - {{- $pgVersion := $objectData.pgVersion | default $.Values.global.fallbackDefaults.pgVersion -}} + {{- $pgVersion := $objectData.pgVersion | default (toString $.Values.global.fallbackDefaults.pgVersion) -}} {{- $versionConfigMapName := printf "cnpg-%s-pgversion" $objectData.shortName -}} {{/* If there are previous configmap, fetch value */}}