From a6821995ca9c0dfcee8daaebd7158565051e265c Mon Sep 17 00:00:00 2001 From: alexlebens Date: Fri, 14 Jun 2024 21:23:48 -0500 Subject: [PATCH] fix post init location --- charts/postgres-cluster/Chart.yaml | 2 +- charts/postgres-cluster/templates/_bootstrap.tpl | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/postgres-cluster/Chart.yaml b/charts/postgres-cluster/Chart.yaml index 584f098..c531109 100644 --- a/charts/postgres-cluster/Chart.yaml +++ b/charts/postgres-cluster/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: postgres-cluster -version: 3.2.0 +version: 3.3.0 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 650ca27..7511b2e 100644 --- a/charts/postgres-cluster/templates/_bootstrap.tpl +++ b/charts/postgres-cluster/templates/_bootstrap.tpl @@ -20,6 +20,9 @@ bootstrap: {{- range .postInitApplicationSQL }} {{- printf "- %s" . | nindent 6 }} {{- end }} + {{- end }} + postInitSQL: + {{- with .Values.cluster.initdb }} {{- range .postInitSQL }} {{- printf "- %s" . | nindent 6 }} {{- end }}