From 705a6322872f81f2e2d3bc8170756be8edce1086 Mon Sep 17 00:00:00 2001 From: spron-in Date: Thu, 3 Aug 2023 19:33:24 +0300 Subject: [PATCH 1/3] add hba and fix parameters --- charts/pg-db/Chart.yaml | 2 +- charts/pg-db/templates/cluster.yaml | 21 +++++++++++---------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/charts/pg-db/Chart.yaml b/charts/pg-db/Chart.yaml index 0f178480..d59f1c43 100644 --- a/charts/pg-db/Chart.yaml +++ b/charts/pg-db/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: pg-db description: 'A Helm chart to deploy the PostgreSQL database with the Percona Operator for PostgreSQL' type: application -version: 2.2.2 +version: 2.2.3 appVersion: 2.2.0 home: https://docs.percona.com/percona-operator-for-postgresql/2.0/ maintainers: diff --git a/charts/pg-db/templates/cluster.yaml b/charts/pg-db/templates/cluster.yaml index 5c053003..9bfff26c 100644 --- a/charts/pg-db/templates/cluster.yaml +++ b/charts/pg-db/templates/cluster.yaml @@ -357,13 +357,14 @@ spec: {{- end }} {{- end }} - {{- if .Values.patroni}} - patroni: - dynamicConfiguration: - postgresql: - parameters: - max_parallel_workers: {{ .Values.patroni.dynamicConfiguration.postgresql.parameters.max_parallel_workers }} - max_worker_processes: {{ .Values.patroni.dynamicConfiguration.postgresql.parameters.max_worker_processes }} - shared_buffers: {{ .Values.patroni.dynamicConfiguration.postgresql.parameters.shared_buffers }} - work_mem: {{ .Values.patroni.dynamicConfiguration.postgresql.parameters.work_mem }} - {{- end }} +{{- if .Values.patroni}} + patroni: + dynamicConfiguration: + postgresql: + parameters: + {{- .Values.patroni.dynamicConfiguration.postgresql.parameters | toYaml | nindent 10 }} + pg_hba: + {{- range $pg_hba_entry := .Values.patroni.dynamicConfiguration.postgresql.pg_hba }} + - {{ $pg_hba_entry }} + {{- end }} +{{- end }} From a547be7f10b55687594eef34b4b86a12b2a9cb1d Mon Sep 17 00:00:00 2001 From: spron-in Date: Thu, 3 Aug 2023 19:37:27 +0300 Subject: [PATCH 2/3] chart version bump --- charts/pg-db/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/pg-db/Chart.yaml b/charts/pg-db/Chart.yaml index d59f1c43..480bc341 100644 --- a/charts/pg-db/Chart.yaml +++ b/charts/pg-db/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: pg-db description: 'A Helm chart to deploy the PostgreSQL database with the Percona Operator for PostgreSQL' type: application -version: 2.2.3 +version: 2.2.4 appVersion: 2.2.0 home: https://docs.percona.com/percona-operator-for-postgresql/2.0/ maintainers: From 7e6c7877495e028453956eb8b2f7792ce3efb4fc Mon Sep 17 00:00:00 2001 From: Sergey Pronin Date: Mon, 7 Aug 2023 12:01:35 +0300 Subject: [PATCH 3/3] Update cluster.yaml --- charts/pg-db/templates/cluster.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/pg-db/templates/cluster.yaml b/charts/pg-db/templates/cluster.yaml index 15ec8a12..41d0edcf 100644 --- a/charts/pg-db/templates/cluster.yaml +++ b/charts/pg-db/templates/cluster.yaml @@ -326,7 +326,7 @@ spec: {{- end }} -{{- if .Values.patroni}} +{{- if .Values.patroni }} patroni: dynamicConfiguration: postgresql: