Skip to content

Commit 2eb1e53

Browse files
committed
chore(postgresql-cluster): Avoid permission changes after restart
1 parent 5b1a3d3 commit 2eb1e53

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

addons/postgresql-cluster/15/chart/postgresql-cluster/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ patroni:
208208
enabled: true
209209
runAsUser: 1000
210210
runAsNonRoot: true
211-
fsGroup: 1000
211+
fsGroup: 1000
212+
fsGroupChangePolicy: OnRootMismatch
212213
runAsGroup: 1000
213214
## @param patroni.podAnnotations Additional pod annotations for Postgresql patroni pods
214215
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/

addons/postgresql-cluster/16/chart/postgresql-cluster-16/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ patroni:
208208
enabled: true
209209
runAsUser: 1000
210210
runAsNonRoot: true
211-
fsGroup: 1000
211+
fsGroup: 1000
212+
fsGroupChangePolicy: OnRootMismatch
212213
runAsGroup: 1000
213214

214215
## @param patroni.podAnnotations Additional pod annotations for Postgresql patroni pods

addons/postgresql-cluster/17/chart/postgresql-cluster-17/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ patroni:
210210
enabled: true
211211
runAsUser: 1000
212212
runAsNonRoot: true
213-
fsGroup: 1000
213+
fsGroup: 1000
214+
fsGroupChangePolicy: OnRootMismatch
214215
runAsGroup: 1000
215216

216217
## @param patroni.podAnnotations Additional pod annotations for Postgresql patroni pods

addons/postgresql-cluster/18/chart/postgresql-cluster-18/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ patroni:
210210
enabled: true
211211
runAsUser: 1000
212212
runAsNonRoot: true
213-
fsGroup: 1000
213+
fsGroup: 1000
214+
fsGroupChangePolicy: OnRootMismatch
214215
runAsGroup: 1000
215216

216217
## @param patroni.podAnnotations Additional pod annotations for Postgresql patroni pods

0 commit comments

Comments
 (0)