[bitnami/postgresql] Add lifecycleHooks value to the postgresql chart (#7055)

* Add a preStop hook command to the postgreSQL chart

* add lifecycleHooks value for postgreSQL chart

* Fix chart version
This commit is contained in:
David Dieulivol
2021-07-27 12:20:40 +02:00
committed by GitHub
parent 20e4cad2aa
commit e631584fe4
4 changed files with 8 additions and 1 deletions

View File

@@ -145,6 +145,9 @@ spec:
{{- if .Values.resources }}
resources: {{- toYaml .Values.resources | nindent 12 }}
{{- end }}
{{- if .Values.lifecycleHooks }}
lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.lifecycleHooks "context" $) | nindent 12 }}
{{- end }}
{{- if .Values.containerSecurityContext.enabled }}
securityContext: {{- omit .Values.containerSecurityContext "enabled" | toYaml | nindent 12 }}
{{- end }}