Synchronize upstreamed folder to 1675127f

This commit is contained in:
bitnami-bot
2018-11-07 10:36:31 +00:00
parent 783690d04c
commit aad08691d2
17 changed files with 251 additions and 143 deletions

View File

@@ -49,6 +49,18 @@ spec:
{{- if .Values.terminationGracePeriodSeconds }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
{{- end }}
{{- if and .Values.persistence.enabled .Values.securityContext.enabled}}
initContainers:
- name: init-chmod-data
image: {{ template "postgresql.volumePermissions.image" . }}
imagePullPolicy: "{{ .Values.volumePermissions.image.pullPolicy }}"
command: ['sh' , '-c' , 'if [ -d /bitnami/postgresql/data ]; then chmod 0700 /bitnami/postgresql/data; fi']
securityContext:
runAsUser: {{ .Values.volumePermissions.securityContext.runAsUser }}
volumeMounts:
- name: data
mountPath: /bitnami/postgresql
{{ end }}
containers:
- name: {{ template "postgresql.fullname" . }}
image: {{ template "postgresql.image" . }}