Skip to content

Commit

Permalink
[stable/postgresql] Ensure intContainer creates the data directory. (h…
Browse files Browse the repository at this point in the history
…elm#14401)

* [stable/postgresql] Ensure intContainer creates the data directory.

Signed-off-by: juan131 <[email protected]>

* Update PostgreSQL image tag to '11.3.0-debian-9-r26'

Signed-off-by: juan131 <[email protected]>

* Update PostgreSQL image tag to '11.3.0-debian-9-r26' on 'values-production.yaml'

Signed-off-by: juan131 <[email protected]>

* Update PostgreSQL image tag to '11.3.0-debian-9-r27'

Signed-off-by: juan131 <[email protected]>
  • Loading branch information
Juan Ariza Toledano authored and JGodin-C2C committed Jun 3, 2019
1 parent 7c34cc9 commit 3586265
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion stable/postgresql/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: postgresql
version: 5.2.1
version: 5.2.2
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:
Expand Down
4 changes: 1 addition & 3 deletions stable/postgresql/templates/statefulset-slaves.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,9 @@ spec:
- sh
- -c
- |
mkdir -m 700 -p {{ .Values.persistence.mountPath }}/data
find {{ .Values.persistence.mountPath }} -mindepth 1 -maxdepth 1 -not -name ".snapshot" | \
xargs chown -R {{ .Values.securityContext.runAsUser }}:{{ .Values.securityContext.fsGroup }}
if [ -d {{ .Values.persistence.mountPath }}/data ]; then
chmod 0700 {{ .Values.persistence.mountPath }}/data;
fi
securityContext:
runAsUser: {{ .Values.volumePermissions.securityContext.runAsUser }}
volumeMounts:
Expand Down
4 changes: 1 addition & 3 deletions stable/postgresql/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,9 @@ spec:
- sh
- -c
- |
mkdir -m 700 -p {{ .Values.persistence.mountPath }}/data
find {{ .Values.persistence.mountPath }} -mindepth 1 -maxdepth 1 -not -name ".snapshot" | \
xargs chown -R {{ .Values.securityContext.runAsUser }}:{{ .Values.securityContext.fsGroup }}
if [ -d {{ .Values.persistence.mountPath }}/data ]; then
chmod 0700 {{ .Values.persistence.mountPath }}/data;
fi
securityContext:
runAsUser: {{ .Values.volumePermissions.securityContext.runAsUser }}
volumeMounts:
Expand Down
2 changes: 1 addition & 1 deletion stable/postgresql/values-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ global:
image:
registry: docker.io
repository: bitnami/postgresql
tag: 11.3.0-debian-9-r17
tag: 11.3.0-debian-9-r27
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
Expand Down
2 changes: 1 addition & 1 deletion stable/postgresql/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ global:
image:
registry: docker.io
repository: bitnami/postgresql
tag: 11.3.0-debian-9-r17
tag: 11.3.0-debian-9-r27
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
Expand Down

0 comments on commit 3586265

Please sign in to comment.