From 38bea990050018787f7315c5a87c2e2bae56fdf2 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Tue, 12 Mar 2024 18:11:53 +0200 Subject: [PATCH] Update _cnpg.tpl --- library/common/templates/spawner/_cnpg.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */}}