Marco Kilchhofer
db08f68c1b
[bitnami/postgresql] Don't put postgresql-postgres-password in secret when not needed ( #5635 )
...
* 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
2021-03-03 12:24:44 +01:00
..
2021-02-24 15:34:56 +01:00
2021-02-26 17:48:10 +00:00
2021-02-26 18:13:13 +00:00
2021-02-24 16:55:39 +00:00
2021-02-23 14:10:35 +01:00
2021-02-10 13:10:57 +01:00
2021-02-22 17:37:32 +01:00
2021-02-17 18:17:28 +01:00
2021-02-18 20:51:53 +00:00
2021-02-23 01:15:26 +00:00
2021-02-19 20:08:44 +00:00
2021-02-10 13:10:57 +01:00
2021-02-27 00:15:30 +00:00
2021-02-10 20:11:06 +00:00
2021-03-03 11:39:47 +01:00
2021-02-22 17:37:32 +01:00
2021-03-01 23:14:16 +00:00
2021-02-24 13:09:43 +00:00
2021-03-02 14:46:31 +01:00
2021-02-25 15:58:50 +01:00
2021-02-14 21:23:11 +00:00
2021-02-26 18:30:09 +00:00
2021-02-10 19:42:20 +00:00
2021-02-13 16:02:28 +00:00
2021-02-26 22:02:13 +00:00
2021-03-01 10:29:26 +00:00
2021-02-22 17:37:32 +01:00
2021-02-26 18:19:16 +00:00
2021-02-26 16:07:09 +00:00
2021-03-03 11:43:47 +01:00
2021-02-23 11:29:39 +00:00
2021-02-23 14:11:11 +00:00
2021-02-24 18:46:37 +00:00
2021-02-22 17:37:32 +01:00
2021-03-02 09:17:09 +01:00
2021-02-23 00:13:30 +00:00
2021-02-22 19:29:55 +00:00
2021-03-02 18:20:44 +01:00
2021-02-21 01:26:52 +00:00
2021-02-24 10:38:53 +00:00
2021-02-22 17:37:32 +01:00
2021-02-23 13:47:57 +01:00
2021-03-01 07:03:57 +00:00
2021-03-02 13:28:33 +01:00
2021-02-12 16:55:35 +01:00
2021-02-16 13:45:22 +00:00
2021-02-26 18:27:33 +00:00
2021-02-22 17:37:32 +01:00
2021-02-10 13:10:57 +01:00
2021-02-22 21:00:26 +00:00
2021-02-23 12:08:59 +00:00
2021-02-24 07:07:06 +00:00
2021-02-22 17:37:32 +01:00
2021-02-10 13:10:57 +01:00
2021-02-10 13:10:57 +01:00
2021-02-21 06:14:16 +00:00
2021-02-26 18:46:26 +00:00
2021-02-10 13:10:57 +01:00
2021-02-26 19:48:13 +00:00
2021-02-27 01:17:10 +00:00
2021-02-28 22:01:51 +00:00
2021-02-07 01:39:38 +00:00
2021-03-03 12:24:44 +01:00
2021-02-26 13:19:45 +01:00
2021-02-22 19:34:59 +00:00
2021-02-22 15:40:46 +00:00
2021-02-27 22:08:46 +00:00
2021-03-02 12:49:25 +00:00
2021-03-02 14:22:24 +01:00
2021-02-22 12:03:23 +00:00
2021-03-03 09:10:56 +01:00
2021-02-25 10:36:58 +01:00
2021-02-25 09:33:13 +01:00
2021-02-16 02:42:19 +00:00
2021-02-26 09:03:25 +00:00
2021-02-16 21:43:23 +00:00
2021-02-24 16:39:49 +01:00
2021-02-18 23:31:38 +00:00
2021-03-03 11:41:17 +01:00
2021-02-11 22:14:39 +00:00
2021-02-25 17:30:35 +00:00
2021-02-23 17:26:42 +00:00