mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
The command 'mkdir -p' has no effect if the directory already exists. To ensure the init container sets the mode for an existing data directory, we call 'chmod 700' separately. Signed-off-by: Tim Guenthner <aerotog@gmail.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
85f0163f47
commit
14e65cc8d1
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: postgresql
|
||||
version: 5.3.2
|
||||
version: 5.3.3
|
||||
appVersion: 11.3.0
|
||||
description: Chart for PostgreSQL, an object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance.
|
||||
keywords:
|
||||
|
||||
@@ -70,7 +70,8 @@ spec:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
mkdir -m 700 -p {{ .Values.persistence.mountPath }}/data
|
||||
mkdir -p {{ .Values.persistence.mountPath }}/data
|
||||
chmod 700 {{ .Values.persistence.mountPath }}/data
|
||||
find {{ .Values.persistence.mountPath }} -mindepth 1 -maxdepth 1 -not -name ".snapshot" | \
|
||||
xargs chown -R {{ .Values.securityContext.runAsUser }}:{{ .Values.securityContext.fsGroup }}
|
||||
securityContext:
|
||||
|
||||
@@ -74,7 +74,8 @@ spec:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
mkdir -m 700 -p {{ .Values.persistence.mountPath }}/data
|
||||
mkdir -p {{ .Values.persistence.mountPath }}/data
|
||||
chmod 700 {{ .Values.persistence.mountPath }}/data
|
||||
find {{ .Values.persistence.mountPath }} -mindepth 1 -maxdepth 1 -not -name ".snapshot" | \
|
||||
xargs chown -R {{ .Values.securityContext.runAsUser }}:{{ .Values.securityContext.fsGroup }}
|
||||
securityContext:
|
||||
|
||||
Reference in New Issue
Block a user