feat(postgresql): also set and remember postgresql root password

This commit is contained in:
kjeld Schouten-Lebbing
2021-11-08 17:40:48 +01:00
parent 19fe769103
commit 7e08a5f591
4 changed files with 12 additions and 3 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ name: postgresql
sources:
- https://www.postgresql.org/
type: application
version: 5.1.13
version: 5.1.14
annotations:
truecharts.org/catagories: |
- database
+5
View File
@@ -32,6 +32,7 @@ persistence:
postgresqlPassword: "testpass"
postgresqlUsername: "test"
postgresqlDatabase: "test"
postgrespassword: "testroot"
existingSecret: ""
envValueFrom:
@@ -39,6 +40,10 @@ envValueFrom:
secretKeyRef:
name: '{{ ( tpl .Values.existingSecret $ ) | default ( include "common.names.fullname" . ) }}'
key: "postgresql-password"
POSTGRESQL_POSTGRES_PASSWORD:
secretKeyRef:
name: '{{ ( tpl .Values.existingSecret $ ) | default ( include "common.names.fullname" . ) }}'
key: "postgresql-postgres-password"
envTpl:
POSTGRES_USER: "{{ .Values.postgresqlUsername }}"