Skip to content

Commit

Permalink
Added support for the specific user UID & GID
Browse files Browse the repository at this point in the history
  • Loading branch information
Nigel committed Mar 11, 2024
1 parent 962184a commit 6e9e37a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/cluster/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
6 changes: 6 additions & 0 deletions charts/cluster/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@
"postgresql": {
"type": "object"
},
"postgresUID": {
"type": "integer"
},
"postgresGID": {
"type": "integer"
},
"primaryUpdateMethod": {
"type": "string"
},
Expand Down
6 changes: 6 additions & 0 deletions charts/cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6e9e37a

Please sign in to comment.