simplify postgresql folder setup

This commit is contained in:
kjeld Schouten-Lebbing
2021-08-13 23:43:13 +02:00
parent 19877edf3b
commit 175b33aeb2
6 changed files with 13 additions and 18 deletions
@@ -9,7 +9,6 @@ image:
pullPolicy: IfNotPresent
tag: "13.3"
pgdatapath: "/data"
envValueFrom:
POSTGRES_PASSWORD:
@@ -18,7 +17,6 @@ envValueFrom:
key: "postgresql-password"
envTpl:
PGDATA: "{{ .Values.pgdatapath }}"
POSTGRES_USER: "{{ .Values.postgresqlUsername }}"
POSTGRES_DB: "{{ .Values.postgresqlDatabase }}"
# POSTGRESQL_POSTGRES_PASSWORD: "{{ .Values.postgrespassword }}"
@@ -27,4 +25,4 @@ envTpl:
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart
##
##
@@ -76,7 +76,7 @@ questions:
description: "RollingUpdate: Create new pods and then kill old ones"
- value: "OnDelete"
description: "(Legacy) OnDelete: ignore .spec.template changes"
- variable: env
group: "Container Configuration"
label: "Image Environment"
@@ -253,8 +253,8 @@ questions:
schema:
type: dict
attrs:
- variable: data
label: "App data Storage"
- variable: db
label: "App db Storage"
description: "Stores the Application Database."
schema:
type: dict
@@ -330,7 +330,7 @@ questions:
description: "Path inside the container the storage is mounted"
schema:
type: string
default: "/data"
default: "/var/lib/postgresql/data"
hidden: true
- variable: medium
label: "EmptyDir Medium"
@@ -364,7 +364,7 @@ questions:
type: string
default: "100Gi"
- variable: backups
- variable: dbbackups
label: "App backup Storage"
description: "Stores the Application backups."
schema:
@@ -441,7 +441,7 @@ questions:
description: "Path inside the container the storage is mounted"
schema:
type: string
default: "/backups"
default: "/dbbackups"
hidden: true
- variable: medium
label: "EmptyDir Medium"