From 15704530d4193bad13eb44a7a7d10c3aedc8d0ea Mon Sep 17 00:00:00 2001 From: kjeld Schouten-Lebbing Date: Sun, 15 Aug 2021 10:59:22 +0200 Subject: [PATCH] Fix permissions issues for pgadmin --- charts/stable/pgadmin/Chart.yaml | 2 +- charts/stable/pgadmin/SCALE/questions.yaml | 47 ++++++++++++++++++++++ charts/stable/pgadmin/values.yaml | 4 +- 3 files changed, 51 insertions(+), 2 deletions(-) diff --git a/charts/stable/pgadmin/Chart.yaml b/charts/stable/pgadmin/Chart.yaml index 5ee9a4dd6fa..716bb811266 100644 --- a/charts/stable/pgadmin/Chart.yaml +++ b/charts/stable/pgadmin/Chart.yaml @@ -24,4 +24,4 @@ name: pgadmin sources: - https://www.pgadmin.org/ type: application -version: 1.3.2 +version: 1.3.3 diff --git a/charts/stable/pgadmin/SCALE/questions.yaml b/charts/stable/pgadmin/SCALE/questions.yaml index 5b6246c168a..ed5626cbe19 100644 --- a/charts/stable/pgadmin/SCALE/questions.yaml +++ b/charts/stable/pgadmin/SCALE/questions.yaml @@ -103,6 +103,19 @@ questions: schema: type: string default: "002" + - variable: + - variable: PUID + label: "PUID" + description: "Sets the PUID env var for LinuxServer.io (compatible) containers" + schema: + type: int + default: 5050 + - variable: PGID + label: "PGID" + description: "Sets the PGID env var for LinuxServer.io (compatible) containers" + schema: + type: int + default: 5050 - variable: PGADMIN_DEFAULT_EMAIL label: "PGADMIN_DEFAULT_EMAIL" schema: @@ -592,6 +605,40 @@ questions: default: "" required: true + - variable: securityContext + group: "Security and Permissions" + label: "Security Context" + schema: + type: dict + attrs: + - variable: privileged + label: "Enable privileged mode for Common-Chart based charts" + schema: + type: boolean + default: false + + - variable: podSecurityContext + group: "Security and Permissions" + label: "Pod Security Context" + schema: + type: dict + attrs: + - variable: fsGroup + label: "fsGroup" + description: "The group that should own ALL storage." + schema: + type: int + default: 5050 + - variable: fsGroupChangePolicy + label: "When should we take ownership?" + schema: + type: string + default: "OnRootMismatch" + enum: + - value: "OnRootMismatch" + description: "OnRootMismatch" + - value: "Always" + description: "Always" - variable: resources group: "Resources and Devices" label: "" diff --git a/charts/stable/pgadmin/values.yaml b/charts/stable/pgadmin/values.yaml index 5529b62e2e3..58981c052be 100644 --- a/charts/stable/pgadmin/values.yaml +++ b/charts/stable/pgadmin/values.yaml @@ -23,4 +23,6 @@ persistence: config: enabled: true mountPath: "/var/lib/pgadmin" - type: emptyDir + type: pvc + accessMode: ReadWriteOnce + size: "100Gi"