[bitnami/postgresql-ha] bugfix: credentials from files on witness (#34986)

This commit is contained in:
Juan Ariza Toledano
2025-07-10 18:05:04 +02:00
committed by GitHub
parent 210c1ae610
commit 361cf78943
5 changed files with 17 additions and 13 deletions

View File

@@ -1,8 +1,12 @@
# Changelog
## 16.0.18 (2025-07-09)
## 16.0.19 (2025-07-10)
* [bitnami/postgresql-ha] :zap: :arrow_up: Update dependency references ([#34962](https://github.com/bitnami/charts/pull/34962))
* [bitnami/postgresql-ha] bugfix: credentials from files on witness ([#34986](https://github.com/bitnami/charts/pull/34986))
## <small>16.0.18 (2025-07-09)</small>
* [bitnami/postgresql-ha] :zap: :arrow_up: Update dependency references (#34962) ([4841599](https://github.com/bitnami/charts/commit/48415997525a3b026d04823eef458537d1e5eef2)), closes [#34962](https://github.com/bitnami/charts/issues/34962)
## <small>16.0.17 (2025-07-09)</small>

View File

@@ -7,7 +7,7 @@ annotations:
- name: os-shell
image: docker.io/bitnami/os-shell:12-debian-12-r47
- name: pgpool
image: docker.io/bitnami/pgpool:4.6.2-debian-12-r3
image: docker.io/bitnami/pgpool:4.6.2-debian-12-r4
- name: postgres-exporter
image: docker.io/bitnami/postgres-exporter:0.17.1-debian-12-r12
- name: postgresql-repmgr
@@ -43,4 +43,4 @@ maintainers:
name: postgresql-ha
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/postgresql-ha
version: 16.0.18
version: 16.0.19

View File

@@ -708,7 +708,7 @@ A default `StorageClass` is needed in the Kubernetes cluster to dynamically prov
| `pgpool.livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `30` |
| `pgpool.livenessProbe.periodSeconds` | Period seconds for livenessProbe | `10` |
| `pgpool.livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `5` |
| `pgpool.livenessProbe.failureThreshold` | Failure threshold for livenessProbe | `5` |
| `pgpool.livenessProbe.failureThreshold` | Failure threshold for livenessProbe | `3` |
| `pgpool.livenessProbe.successThreshold` | Success threshold for livenessProbe | `1` |
| `pgpool.readinessProbe.enabled` | Enable readinessProbe | `true` |
| `pgpool.readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `5` |

View File

@@ -180,7 +180,7 @@ spec:
- name: PGDATA
value: {{ printf "%s/%s" .Values.persistence.mountPath "data" | quote }}
{{- if not (eq (include "postgresql-ha.postgresqlUsername" .) "postgres") }}
{{- if .Values.witness.usePasswordFiles }}
{{- if .Values.postgresql.usePasswordFiles }}
- name: POSTGRES_POSTGRES_PASSWORD_FILE
value: "/opt/bitnami/postgresql/secrets/postgres-password"
{{- else }}
@@ -193,7 +193,7 @@ spec:
{{- end }}
- name: POSTGRES_USER
value: {{ (include "postgresql-ha.postgresqlUsername" .) | quote }}
{{- if .Values.witness.usePasswordFiles }}
{{- if .Values.postgresql.usePasswordFiles }}
- name: POSTGRES_PASSWORD_FILE
value: "/opt/bitnami/postgresql/secrets/password"
{{- else }}
@@ -324,7 +324,7 @@ spec:
value: {{ .Values.witness.repmgrReconnectInterval | quote }}
- name: REPMGR_USERNAME
value: {{ (include "postgresql-ha.postgresqlRepmgrUsername" .) | quote }}
{{- if .Values.witness.usePasswordFiles }}
{{- if .Values.postgresql.usePasswordFiles }}
- name: REPMGR_PASSWORD_FILE
value: "/opt/bitnami/postgresql/secrets/repmgr-password"
{{- else }}
@@ -432,7 +432,7 @@ spec:
- name: custom-init-scripts-secret
mountPath: /docker-entrypoint-initdb.d/secret
{{- end }}
{{- if .Values.witness.usePasswordFiles }}
{{- if .Values.postgresql.usePasswordFiles }}
- name: password
mountPath: /opt/bitnami/postgresql/secrets/
{{- end }}
@@ -460,7 +460,7 @@ spec:
value: :{{ .Values.metrics.containerPorts.http }}
- name: DATA_SOURCE_URI
value: {{ printf "127.0.0.1:%d/%s?sslmode=disable" (.Values.witness.containerPorts.postgresql | int64) (include "postgresql-ha.postgresqlDatabase" .) | quote }}
{{- if .Values.witness.usePasswordFiles }}
{{- if .Values.postgresql.usePasswordFiles }}
- name: DATA_SOURCE_PASS_FILE
value: "/opt/bitnami/postgresql/secrets/password"
{{- else }}
@@ -573,7 +573,7 @@ spec:
secret:
secretName: {{ template "postgresql-ha.postgresqlInitdbScriptsSecret" . }}
{{- end }}
{{- if .Values.witness.usePasswordFiles }}
{{- if .Values.postgresql.usePasswordFiles }}
- name: password
secret:
secretName: {{ include "postgresql-ha.postgresqlSecretName" . }}

View File

@@ -1132,7 +1132,7 @@ pgpool:
image:
registry: docker.io
repository: bitnami/pgpool
tag: 4.6.2-debian-12-r3
tag: 4.6.2-debian-12-r4
digest: ""
## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
##
@@ -1374,7 +1374,7 @@ pgpool:
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 5
failureThreshold: 3
## Pgpool-II container's readiness probe
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
## @param pgpool.readinessProbe.enabled Enable readinessProbe