diff --git a/charts/postgres-cluster/Chart.yaml b/charts/postgres-cluster/Chart.yaml index 7d267f2..fd5be65 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.3 +version: 2.3.4 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 12455e2..3484a3b 100644 --- a/charts/postgres-cluster/templates/_bootstrap.tpl +++ b/charts/postgres-cluster/templates/_bootstrap.tpl @@ -26,8 +26,7 @@ bootstrap: import: type: {{ .Values.replica.importType }} databases: - {{ $length := len .Values.replica.importDatabases | int }} - {{- if and ($length gt 1) (.Values.replica.importType eq "microservice") }} + {{- if and (gt (len .Values.replica.importDatabases) 1) (eq .Values.replica.importType "microservice") }} {{ fail "Too many databases in import type of microservice!" }} {{- else}} {{- with .Values.replica.importDatabases }}