From a2b0cdd5b6aec6b8514ed21911de833b457e8a7b Mon Sep 17 00:00:00 2001 From: alexlebens Date: Thu, 18 Apr 2024 01:39:33 -0600 Subject: [PATCH] fix ordering of comparision operator --- charts/postgres-cluster/Chart.yaml | 2 +- charts/postgres-cluster/templates/_bootstrap.tpl | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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 }}