mirror of
https://github.com/bitnami/charts.git
synced 2026-03-06 06:58:50 +08:00
[bitnami/postgresql] Set usePasswordFiles=true by default (#32115)
* [bitnami/postgresql] Set `usePasswordFiles=true` by default Signed-off-by: Miguel Ruiz <miguel.ruiz@broadcom.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Bump chart version Signed-off-by: Miguel Ruiz <miguel.ruiz@broadcom.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> * Fix typo in job.yaml Signed-off-by: Miguel Ruiz <miguel.ruiz@broadcom.com> * Fix issue when no password Signed-off-by: Miguel Ruiz <miguel.ruiz@broadcom.com> --------- Signed-off-by: Miguel Ruiz <miguel.ruiz@broadcom.com> Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com> Co-authored-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## 16.5.6 (2025-03-23)
|
||||
## 16.6.0 (2025-03-24)
|
||||
|
||||
* [bitnami/postgresql] Release 16.5.6 ([#32576](https://github.com/bitnami/charts/pull/32576))
|
||||
* [bitnami/postgresql] Set `usePasswordFiles=true` by default ([#32115](https://github.com/bitnami/charts/pull/32115))
|
||||
|
||||
## <small>16.5.6 (2025-03-23)</small>
|
||||
|
||||
* [bitnami/postgresql] Release 16.5.6 (#32576) ([7aac5fd](https://github.com/bitnami/charts/commit/7aac5fd297380af0d94f85922657fbc999dfaadc)), closes [#32576](https://github.com/bitnami/charts/issues/32576)
|
||||
|
||||
## <small>16.5.5 (2025-03-20)</small>
|
||||
|
||||
|
||||
@@ -36,4 +36,4 @@ maintainers:
|
||||
name: postgresql
|
||||
sources:
|
||||
- https://github.com/bitnami/charts/tree/main/bitnami/postgresql
|
||||
version: 16.5.6
|
||||
version: 16.6.0
|
||||
|
||||
@@ -398,7 +398,7 @@ If you already have data in it, you will fail to sync to standby nodes for all c
|
||||
| `auth.secretKeys.adminPasswordKey` | Name of key in existing secret to use for PostgreSQL credentials. Only used when `auth.existingSecret` is set. | `postgres-password` |
|
||||
| `auth.secretKeys.userPasswordKey` | Name of key in existing secret to use for PostgreSQL credentials. Only used when `auth.existingSecret` is set. | `password` |
|
||||
| `auth.secretKeys.replicationPasswordKey` | Name of key in existing secret to use for PostgreSQL credentials. Only used when `auth.existingSecret` is set. | `replication-password` |
|
||||
| `auth.usePasswordFiles` | Mount credentials as a files instead of using an environment variable | `false` |
|
||||
| `auth.usePasswordFiles` | Mount credentials as a files instead of using an environment variable | `true` |
|
||||
| `architecture` | PostgreSQL architecture (`standalone` or `replication`) | `standalone` |
|
||||
| `replication.synchronousCommit` | Set synchronous commit mode. Allowed values: `on`, `remote_apply`, `remote_write`, `local` and `off` | `off` |
|
||||
| `replication.numSynchronousReplicas` | Number of replicas that will have synchronous replication. Note: Cannot be greater than `readReplicas.replicaCount`. | `0` |
|
||||
|
||||
@@ -489,7 +489,7 @@ spec:
|
||||
- name: postgresql-extended-config
|
||||
mountPath: {{ .Values.primary.persistence.mountPath }}/conf/conf.d/
|
||||
{{- end }}
|
||||
{{- if .Values.auth.usePasswordFiles }}
|
||||
{{- if and .Values.auth.usePasswordFiles (or .Values.auth.enablePostgresUser $customUser) }}
|
||||
- name: postgresql-password
|
||||
mountPath: /opt/bitnami/postgresql/secrets/
|
||||
{{- end }}
|
||||
@@ -584,7 +584,7 @@ spec:
|
||||
- name: empty-dir
|
||||
mountPath: /tmp
|
||||
subPath: tmp-dir
|
||||
{{- if .Values.auth.usePasswordFiles }}
|
||||
{{- if and .Values.auth.usePasswordFiles (or .Values.auth.enablePostgresUser $customUser) }}
|
||||
- name: postgresql-password
|
||||
mountPath: /opt/bitnami/postgresql/secrets/
|
||||
{{- end }}
|
||||
@@ -615,7 +615,7 @@ spec:
|
||||
configMap:
|
||||
name: {{ include "postgresql.v1.primary.extendedConfigmapName" . }}
|
||||
{{- end }}
|
||||
{{- if .Values.auth.usePasswordFiles }}
|
||||
{{- if and .Values.auth.usePasswordFiles (or .Values.auth.enablePostgresUser $customUser) }}
|
||||
- name: postgresql-password
|
||||
secret:
|
||||
secretName: {{ include "postgresql.v1.secretName" . }}
|
||||
|
||||
@@ -396,7 +396,7 @@ spec:
|
||||
- name: empty-dir
|
||||
mountPath: /opt/bitnami/postgresql/tmp
|
||||
subPath: app-tmp-dir
|
||||
{{- if .Values.auth.usePasswordFiles }}
|
||||
{{- if and .Values.auth.usePasswordFiles (or .Values.auth.enablePostgresUser $customUser) }}
|
||||
- name: postgresql-password
|
||||
mountPath: /opt/bitnami/postgresql/secrets/
|
||||
{{- end }}
|
||||
@@ -491,7 +491,7 @@ spec:
|
||||
- name: empty-dir
|
||||
mountPath: /tmp
|
||||
subPath: tmp-dir
|
||||
{{- if .Values.auth.usePasswordFiles }}
|
||||
{{- if and .Values.auth.usePasswordFiles (or .Values.auth.enablePostgresUser $customUser) }}
|
||||
- name: postgresql-password
|
||||
mountPath: /opt/bitnami/postgresql/secrets/
|
||||
{{- end }}
|
||||
@@ -515,7 +515,7 @@ spec:
|
||||
configMap:
|
||||
name: {{ include "postgresql.v1.readReplicas.extendedConfigmapName" . }}
|
||||
{{- end }}
|
||||
{{- if .Values.auth.usePasswordFiles }}
|
||||
{{- if and .Values.auth.usePasswordFiles (or .Values.auth.enablePostgresUser $customUser) }}
|
||||
- name: postgresql-password
|
||||
secret:
|
||||
secretName: {{ include "postgresql.v1.secretName" . }}
|
||||
|
||||
@@ -58,7 +58,7 @@ spec:
|
||||
- |
|
||||
{{- $customUser := include "postgresql.v1.username" . }}
|
||||
{{- $customDatabase := include "postgresql.v1.database" . | default "postgres" }}
|
||||
{{- if .Values.usePasswordFiles }}
|
||||
{{- if .Values.auth.usePasswordFiles }}
|
||||
# We need to load all the secret env vars to the system
|
||||
for file in $(find /bitnami/postgresql/secrets -type f); do
|
||||
env_var_name="$(basename $file)"
|
||||
@@ -186,7 +186,7 @@ spec:
|
||||
- name: empty-dir
|
||||
mountPath: /job-status
|
||||
subPath: job-dir
|
||||
{{- if .Values.usePasswordFiles }}
|
||||
{{- if .Values.auth.usePasswordFiles }}
|
||||
- name: postgresql-previous-credentials
|
||||
mountPath: /bitnami/postgresql/secrets/previous
|
||||
- name: postgresql-new-credentials
|
||||
@@ -203,7 +203,7 @@ spec:
|
||||
volumes:
|
||||
- name: empty-dir
|
||||
emptyDir: {}
|
||||
{{- if and .Values.auth.usePasswordFiles }}
|
||||
{{- if .Values.auth.usePasswordFiles }}
|
||||
- name: postgresql-previous-credentials
|
||||
secret:
|
||||
secretName: {{ template "postgresql.update-job.previousSecretName" . }}
|
||||
|
||||
@@ -175,7 +175,7 @@ auth:
|
||||
replicationPasswordKey: replication-password
|
||||
## @param auth.usePasswordFiles Mount credentials as a files instead of using an environment variable
|
||||
##
|
||||
usePasswordFiles: false
|
||||
usePasswordFiles: true
|
||||
## @param architecture PostgreSQL architecture (`standalone` or `replication`)
|
||||
##
|
||||
architecture: standalone
|
||||
@@ -1393,7 +1393,7 @@ backup:
|
||||
##
|
||||
enabled: true
|
||||
storage:
|
||||
## @param backup.cronjob.storage.enabled Enable using a `PersistentVolumeClaim` as backup data volume
|
||||
## @param backup.cronjob.storage.enabled Enable using a `PersistentVolumeClaim` as backup data volume
|
||||
##
|
||||
enabled: true
|
||||
## @param backup.cronjob.storage.existingClaim Provide an existing `PersistentVolumeClaim` (only when `architecture=standalone`)
|
||||
|
||||
Reference in New Issue
Block a user