mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-06 06:25:40 +08:00
remove condiction to prestop
This commit is contained in:
parent
99e0aa2392
commit
3067057cd7
1 changed files with 0 additions and 3 deletions
|
@ -72,15 +72,12 @@ spec:
|
|||
startupProbe: {{- toYaml .Values.startupProbe | nindent 12 }}
|
||||
lifecycle:
|
||||
# If a container has a preStop hook configured, that runs before the container enters the Terminated state.
|
||||
{{- if .Values.metrics.enabled }}
|
||||
{{- else }}
|
||||
preStop:
|
||||
exec:
|
||||
command:
|
||||
- bash
|
||||
- -c
|
||||
- touch /tmp/container_is_terminating && while ! [[ "`mailq`" == *empty* ]]; do echo "Flushing queue..." && postfix flush; sleep 1; done; killall5 -15 supervisord
|
||||
{{- end }}
|
||||
{{- if .Values.lifecycle.postStart }}
|
||||
postStart: {{- toYaml .Values.lifecycle.postStart | nindent 14 }}
|
||||
{{- end }}
|
||||
|
|
Loading…
Add table
Reference in a new issue