diff --git a/charts/postgres-cluster/Chart.yaml b/charts/postgres-cluster/Chart.yaml index a8bbd0e..1d2657d 100644 --- a/charts/postgres-cluster/Chart.yaml +++ b/charts/postgres-cluster/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: postgres-cluster -version: 2.3.1 +version: 2.3.2 description: Chart for cloudnative-pg cluster keywords: - database diff --git a/charts/postgres-cluster/templates/_bootstrap.tpl b/charts/postgres-cluster/templates/_bootstrap.tpl index 89fa0a3..75e0626 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 (len .Values.replica.importDatabases gt 1) (.Values.replica.importType eq "microservice") }} + {{- if and ((len .Values.replica.importDatabases) gt 1) (.Values.replica.importType eq "microservice") }} {{ fail "Too many databases in import type of microservice!" }} {{- else}} {{- with .Values.replica.importDatabases }}