From d3307d4f706655e39bfb939bb7199e3f3d4fe36d Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Sat, 21 Dec 2024 22:39:52 -0600 Subject: [PATCH] use different function --- charts/postgres-cluster/Chart.yaml | 2 +- charts/postgres-cluster/templates/_bootstrap.tpl | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/charts/postgres-cluster/Chart.yaml b/charts/postgres-cluster/Chart.yaml index 7f52df8..d9227ab 100644 --- a/charts/postgres-cluster/Chart.yaml +++ b/charts/postgres-cluster/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: postgres-cluster -version: 3.20.1 +version: 3.20.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 86f9cbc..663621b 100644 --- a/charts/postgres-cluster/templates/_bootstrap.tpl +++ b/charts/postgres-cluster/templates/_bootstrap.tpl @@ -38,9 +38,7 @@ bootstrap: {{- else if eq .Values.mode "replica" }} initdb: {{- if eq .Values.replica.importType "microservice" }} - {{- with index .Values.replica.importDatabases 0 }} - database: {{- . | quote }} - {{- end }} + database: {{ first .Values.replica.importDatabases }} {{- end }} import: type: {{ .Values.replica.importType }}