From 512b1d42435cd7d1dc26d67b850ce2b3143e1102 Mon Sep 17 00:00:00 2001 From: alexlebens Date: Thu, 18 Apr 2024 01:47:46 -0600 Subject: [PATCH] set default value for comparision --- charts/postgres-cluster/templates/_bootstrap.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/postgres-cluster/templates/_bootstrap.tpl b/charts/postgres-cluster/templates/_bootstrap.tpl index 3484a3b..cad726b 100644 --- a/charts/postgres-cluster/templates/_bootstrap.tpl +++ b/charts/postgres-cluster/templates/_bootstrap.tpl @@ -26,7 +26,7 @@ bootstrap: import: type: {{ .Values.replica.importType }} databases: - {{- if and (gt (len .Values.replica.importDatabases) 1) (eq .Values.replica.importType "microservice") }} + {{- if and (gt (len .Values.replica.importDatabases) 1) (eq (default .Values.replica.importType "microservice") "microservice") }} {{ fail "Too many databases in import type of microservice!" }} {{- else}} {{- with .Values.replica.importDatabases }}