From 3b50ca2bfe6624acf6f87b913a0b6f9899f99515 Mon Sep 17 00:00:00 2001 From: alexlebens Date: Thu, 18 Apr 2024 01:51:06 -0600 Subject: [PATCH] fix comparision operator position --- charts/postgres-cluster/Chart.yaml | 2 +- charts/postgres-cluster/templates/_bootstrap.tpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/postgres-cluster/Chart.yaml b/charts/postgres-cluster/Chart.yaml index 8f5bc68..b8ae0bb 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.5 +version: 2.3.6 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 cad726b..d3883f7 100644 --- a/charts/postgres-cluster/templates/_bootstrap.tpl +++ b/charts/postgres-cluster/templates/_bootstrap.tpl @@ -33,13 +33,13 @@ bootstrap: {{- . | toYaml | nindent 8 }} {{- end }} {{- end }} - {{- if .Values.replica.importType eq "monolith" }} + {{- if eq .Values.replica.importType "monolith" }} roles: {{- with .Values.replica.importRoles }} {{- . | toYaml | nindent 8 }} {{- end }} {{- end }} - {{- if and (.Values.replica.postImportApplicationSQL) (.Values.replica.importType eq "microservice") }} + {{- if and (.Values.replica.postImportApplicationSQL) (eq .Values.replica.importType "microservice") }} postImportApplicationSQL: {{- with .Values.replica.postImportApplicationSQL }} {{- . | toYaml | nindent 8 }}