From 24c938cead0f9bd654f0ae973d43d80471c0e4ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20No=C3=ABl?= Date: Wed, 18 Dec 2024 12:48:17 -0500 Subject: [PATCH] Fix --- charts/paradedb/templates/_bootstrap.tpl | 6 +++++- charts/paradedb/templates/cluster.yaml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/charts/paradedb/templates/_bootstrap.tpl b/charts/paradedb/templates/_bootstrap.tpl index bb3886a3c..04283a8ca 100644 --- a/charts/paradedb/templates/_bootstrap.tpl +++ b/charts/paradedb/templates/_bootstrap.tpl @@ -19,6 +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)) }} postInitApplicationSQL: {{- if or (eq .Values.type "paradedb") (eq .Values.type "paradedb-enterprise") }} - CREATE EXTENSION IF NOT EXISTS pg_search; @@ -35,7 +36,9 @@ bootstrap: {{- range .postInitApplicationSQL }} {{- printf "- %s" . | nindent 6 }} {{- end -}} - {{- end }} + {{- end -}} + {{- end }} + {{- if or (eq .Values.type "paradedb") (eq .Values.type "paradedb-enterprise") (not (empty .Values.cluster.initdb.postInitTemplateSQL)) }} postInitTemplateSQL: {{- if or (eq .Values.type "paradedb") (eq .Values.type "paradedb-enterprise") }} - CREATE EXTENSION IF NOT EXISTS pg_search; @@ -53,6 +56,7 @@ bootstrap: {{- printf "- %s" . | nindent 6 }} {{- end -}} {{- end -}} + {{- end }} {{- else if eq .Values.mode "recovery" -}} bootstrap: {{- if eq .Values.recovery.method "pg_basebackup" }} diff --git a/charts/paradedb/templates/cluster.yaml b/charts/paradedb/templates/cluster.yaml index c50c4a2be..1fe20c480 100644 --- a/charts/paradedb/templates/cluster.yaml +++ b/charts/paradedb/templates/cluster.yaml @@ -60,7 +60,7 @@ spec: {{ end }} enablePDB: {{ .Values.cluster.enablePDB }} postgresql: - {{- if or (eq .Values.type "timescaledb") (not (empty .Values.cluster.postgresql.shared_preload_libraries)) }} + {{- if or (eq .Values.type "paradedb") (eq .Values.type "paradedb-enterprise") (not (empty .Values.cluster.postgresql.shared_preload_libraries)) }} shared_preload_libraries: {{- if or (eq .Values.type "paradedb") (eq .Values.type "paradedb-enterprise") }} - pg_search