(feat) move postgresql init and password-generator to common (#1113)

* Move Postgresql initcontainer to common

* bump common

* Handle postgres password generation in common and inject into values.yaml for use in Apps

* (refactor) adapt apps using postgresql to common init and password generator

* no message
This commit is contained in:
Kjeld Schouten-Lebbing
2021-10-09 19:24:45 +02:00
committed by GitHub
parent ce48246b9b
commit 2679fc1108
21 changed files with 93 additions and 305 deletions
-21
View File
@@ -5,11 +5,6 @@ image:
pullPolicy: IfNotPresent
tag: 4.31.0@sha256:6036f2b1fa3214fdcf189a8f28f40a856372413984b08f15ba4fb5891d77bc0a
postgresqlImage:
repository: bitnami/postgresql
pullPolicy: IfNotPresent
tag: 13.4.0@sha256:e7526fc32deec708740784d907bcea2ef6c78bc5ab5265026eff96e70082a54a
command: ["authelia"]
args: ["--config=/configuration.yaml"]
@@ -21,21 +16,6 @@ service:
main:
port: 9091
initContainers:
init-postgresdb:
image: "{{ .Values.postgresqlImage.repository}}:{{ .Values.postgresqlImage.tag }}"
command:
- "sh"
- "-c"
- "until pg_isready -U authelia -h ${pghost} ; do sleep 2 ; done"
imagePullPolicy: IfNotPresent
env:
- name: pghost
valueFrom:
secretKeyRef:
name: dbcreds
key: plainhost
persistence:
config:
enabled: true
@@ -56,7 +36,6 @@ postgresql:
enabled: true
postgresqlUsername: authelia
postgresqlDatabase: authelia
existingSecret: dbcreds
# Enabled redis
# ... for more options see https://github.com/bitnami/charts/tree/master/bitnami/redis