diff --git a/charts/paradedb/templates/_bootstrap.tpl b/charts/paradedb/templates/_bootstrap.tpl index 0010d3cf1..3701b619b 100644 --- a/charts/paradedb/templates/_bootstrap.tpl +++ b/charts/paradedb/templates/_bootstrap.tpl @@ -19,7 +19,7 @@ bootstrap: {{- printf "- %s" . | nindent 6 }} {{- end -}} {{- end }} - {{- if or (eq .Values.type "paradedb") (eq .Values.type "paradedb-enterprise") (not (empty .Values.cluster.initdb.postInitApplicationSQL)) }} + {{- if or (eq .Values.type "paradedb") (eq .Values.type "paradedb-enterprise") (not (empty .Values.paradedb.initdb.postInitApplicationSQL)) }} postInitApplicationSQL: {{- if or (eq .Values.type "paradedb") (eq .Values.type "paradedb-enterprise") }} - CREATE EXTENSION IF NOT EXISTS pg_search; @@ -38,7 +38,7 @@ bootstrap: {{- end -}} {{- end }} {{- end }} - {{- if or (eq .Values.type "paradedb") (eq .Values.type "paradedb-enterprise") (not (empty .Values.cluster.initdb.postInitTemplateSQL)) }} + {{- if or (eq .Values.type "paradedb") (eq .Values.type "paradedb-enterprise") (not (empty .Values.paradedb.initdb.postInitTemplateSQL)) }} postInitTemplateSQL: {{- if or (eq .Values.type "paradedb") (eq .Values.type "paradedb-enterprise") }} - CREATE EXTENSION IF NOT EXISTS pg_search; @@ -56,7 +56,7 @@ bootstrap: {{- printf "- %s" . | nindent 6 }} {{- end -}} {{- end -}} - {{- end -}} + {{- end }} {{- else if eq .Values.mode "recovery" -}} bootstrap: {{- if eq .Values.recovery.method "pg_basebackup" }}