From a960be829d643fa664a44365007e8247da0cde73 Mon Sep 17 00:00:00 2001 From: Nigel Date: Mon, 11 Mar 2024 23:45:49 +0100 Subject: [PATCH] Added support for the specific user UID & GID Signed-off-by: Nigel --- charts/cluster/templates/cluster.yaml | 2 ++ charts/cluster/values.schema.json | 6 ++++++ charts/cluster/values.yaml | 6 ++++++ 3 files changed, 14 insertions(+) diff --git a/charts/cluster/templates/cluster.yaml b/charts/cluster/templates/cluster.yaml index 1410ded56..4c40a12d0 100644 --- a/charts/cluster/templates/cluster.yaml +++ b/charts/cluster/templates/cluster.yaml @@ -19,6 +19,8 @@ spec: imagePullSecrets: {{- . | toYaml | nindent 4 }} {{- end }} + postgresUID: {{ .Values.cluster.postgresUID }} + postgresGID: {{ .Values.cluster.postgresGID }} storage: size: {{ .Values.cluster.storage.size }} storageClass: {{ .Values.cluster.storage.storageClass }} diff --git a/charts/cluster/values.schema.json b/charts/cluster/values.schema.json index 49550780b..75a9551b1 100644 --- a/charts/cluster/values.schema.json +++ b/charts/cluster/values.schema.json @@ -176,6 +176,12 @@ "postgresql": { "type": "object" }, + "postgresUID": { + "type": "integer" + }, + "postgresGID": { + "type": "integer" + }, "primaryUpdateMethod": { "type": "string" }, diff --git a/charts/cluster/values.yaml b/charts/cluster/values.yaml index 02f967133..ff3c79a19 100644 --- a/charts/cluster/values.yaml +++ b/charts/cluster/values.yaml @@ -90,6 +90,12 @@ cluster: size: 8Gi storageClass: "" + # -- The UID of the postgres user inside the image, defaults to 26 + postgresUID: 26 + + # -- The GID of the postgres user inside the image, defaults to 26 + postgresGID: 26 + # -- Resources requirements of every generated Pod. # Please refer to https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ for more information. # We strongly advise you use the same setting for limits and requests so that your cluster pods are given a Guaranteed QoS.