mirror of
https://github.com/bitnami/charts.git
synced 2026-02-21 12:47:36 +08:00
* Don't put postgresql-postgres-password in secret when not needed
When only using the "postgres" user, the secret gets updated every helm upgrade with a
random string. When using with argocd (and maybe other gitops tools) there are always
changes until you put a dummy value into postgresqlPostgresPassword.
Use the same conditional as in statefulset.yaml:
~~~
{{- if not (eq (include "postgresql.username" .) "postgres") }}
# (..)
- name: POSTGRES_POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: {{ template "postgresql.secretName" . }}
key: postgresql-postgres-password
{{- end }}
{{- end }}
~~~
* Use same conditional for readreplicas
In PR #4380 we forgot to also change the 2nd statefulset for the readreplicas