diff --git a/packages/kontinuous/tests/samples/extends-ovh/charts-overrides/cnpg-cluster/Chart.yaml b/packages/kontinuous/tests/samples/extends-ovh/charts-overrides/cnpg-cluster/Chart.yaml index edb4845c27..05335bf791 100644 --- a/packages/kontinuous/tests/samples/extends-ovh/charts-overrides/cnpg-cluster/Chart.yaml +++ b/packages/kontinuous/tests/samples/extends-ovh/charts-overrides/cnpg-cluster/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: cnpg-cluster description: A Helm chart to create cloudnative-pg.io clusters type: application -version: 1.7.3 +version: 1.8.0 appVersion: 14.5-6 diff --git a/packages/kontinuous/tests/samples/extends-ovh/charts-overrides/cnpg-cluster/templates/cluster.cnpg.yaml b/packages/kontinuous/tests/samples/extends-ovh/charts-overrides/cnpg-cluster/templates/cluster.cnpg.yaml index 0ff6de35d9..22eb8d9990 100644 --- a/packages/kontinuous/tests/samples/extends-ovh/charts-overrides/cnpg-cluster/templates/cluster.cnpg.yaml +++ b/packages/kontinuous/tests/samples/extends-ovh/charts-overrides/cnpg-cluster/templates/cluster.cnpg.yaml @@ -186,6 +186,10 @@ spec: {{- range $name := .Values.extensions }} - CREATE EXTENSION IF NOT EXISTS "{{ $name }}"; {{- end }} + {{ if .Values.postInitApplicationSQL }} + postInitApplicationSQL: + {{- toYaml .Values.postInitApplicationSQL | nindent 8 }} + {{ end }} {{- end }} {{- if .Values.recovery.enabled }} diff --git a/packages/kontinuous/tests/samples/extends-ovh/charts-overrides/cnpg-cluster/values.yaml b/packages/kontinuous/tests/samples/extends-ovh/charts-overrides/cnpg-cluster/values.yaml index bfbb6885b5..2660b51f41 100644 --- a/packages/kontinuous/tests/samples/extends-ovh/charts-overrides/cnpg-cluster/values.yaml +++ b/packages/kontinuous/tests/samples/extends-ovh/charts-overrides/cnpg-cluster/values.yaml @@ -175,3 +175,6 @@ recovery: enabled: false # the name of the source cluster in the backups # externalClusterName: source-cluster-name + +# List of SQL queries to be executed as a superuser in the application database right after is created - to be used with extreme care (by default empty) +postInitApplicationSQL: ""