From c4edebd95b726a54e304bfd5cc16f3c65b5159a8 Mon Sep 17 00:00:00 2001 From: Miguel Ruiz Date: Thu, 21 Mar 2024 09:34:14 +0100 Subject: [PATCH 1/2] [bitnami/postgresql-ha] Fix issue where user password is not set when a different username is provided Signed-off-by: Miguel Ruiz --- bitnami/postgresql-ha/Chart.yaml | 2 +- bitnami/postgresql-ha/templates/postgresql/statefulset.yaml | 2 +- .../postgresql-ha/templates/postgresql/witness-statefulset.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bitnami/postgresql-ha/Chart.yaml b/bitnami/postgresql-ha/Chart.yaml index fb74ef81920f83..d6a8b42eaabc48 100644 --- a/bitnami/postgresql-ha/Chart.yaml +++ b/bitnami/postgresql-ha/Chart.yaml @@ -40,4 +40,4 @@ maintainers: name: postgresql-ha sources: - https://github.com/bitnami/charts/tree/main/bitnami/postgresql-ha -version: 14.0.0 +version: 14.0.1 diff --git a/bitnami/postgresql-ha/templates/postgresql/statefulset.yaml b/bitnami/postgresql-ha/templates/postgresql/statefulset.yaml index 6115a70ee22d0e..759fdfc88dc9af 100644 --- a/bitnami/postgresql-ha/templates/postgresql/statefulset.yaml +++ b/bitnami/postgresql-ha/templates/postgresql/statefulset.yaml @@ -189,7 +189,7 @@ spec: value: {{ .Values.persistence.mountPath | quote }} - name: PGDATA value: {{ printf "%s/%s" .Values.persistence.mountPath "data" | quote }} - {{- if and (or (not (include "postgresql-ha.postgresqlCreateSecret" .)) (include "postgresql-ha.postgresqlPasswordProvided" .)) (not (eq (include "postgresql-ha.postgresqlUsername" .) "postgres")) }} + {{- if not (eq (include "postgresql-ha.postgresqlUsername" .) "postgres") }} {{- if .Values.postgresql.usePasswordFile }} - name: POSTGRES_POSTGRES_PASSWORD_FILE value: "/opt/bitnami/postgresql/secrets/postgres-password" diff --git a/bitnami/postgresql-ha/templates/postgresql/witness-statefulset.yaml b/bitnami/postgresql-ha/templates/postgresql/witness-statefulset.yaml index 8a791ae80c07b4..99be277d165905 100644 --- a/bitnami/postgresql-ha/templates/postgresql/witness-statefulset.yaml +++ b/bitnami/postgresql-ha/templates/postgresql/witness-statefulset.yaml @@ -181,7 +181,7 @@ spec: value: {{ .Values.persistence.mountPath | quote }} - name: PGDATA value: {{ printf "%s/%s" .Values.persistence.mountPath "data" | quote }} - {{- if and (or (not (include "postgresql-ha.postgresqlCreateSecret" .)) (include "postgresql-ha.postgresqlPasswordProvided" .)) (not (eq (include "postgresql-ha.postgresqlUsername" .) "postgres")) }} + {{- if not (eq (include "postgresql-ha.postgresqlUsername" .) "postgres") }} {{- if .Values.witness.usePasswordFile }} - name: POSTGRES_POSTGRES_PASSWORD_FILE value: "/opt/bitnami/postgresql/secrets/postgres-password" From a0749457951a18ddb840843bdeeb04546da0a784 Mon Sep 17 00:00:00 2001 From: Bitnami Containers Date: Wed, 19 Jun 2024 06:12:47 +0000 Subject: [PATCH 2/2] Update CHANGELOG.md Signed-off-by: Bitnami Containers --- bitnami/postgresql-ha/CHANGELOG.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bitnami/postgresql-ha/CHANGELOG.md b/bitnami/postgresql-ha/CHANGELOG.md index 3fdbad2e92f546..ced14b27b5ce3a 100644 --- a/bitnami/postgresql-ha/CHANGELOG.md +++ b/bitnami/postgresql-ha/CHANGELOG.md @@ -1,8 +1,12 @@ # Changelog -## 14.2.7 (2024-06-18) +## 14.2.8 (2024-06-19) -* [bitnami/postgresql-ha] Release 14.2.7 ([#27400](https://github.com/bitnami/charts/pull/27400)) +* [bitnami/postgresql-ha] Fix issue where user password is not set when a different username is provided ([#24593](https://github.com/bitnami/charts/pull/24593)) + +## 14.2.7 (2024-06-18) + +* [bitnami/postgresql-ha] Release 14.2.7 (#27400) ([81649d9](https://github.com/bitnami/charts/commit/81649d936fa5d17214cc171b35b876d971fd1dc0)), closes [#27400](https://github.com/bitnami/charts/issues/27400) ## 14.2.6 (2024-06-17)