remove condiction to prestop

This commit is contained in:
Jonathon Beauregard II 2022-12-05 13:48:56 -08:00
parent 99e0aa2392
commit 3067057cd7

View file

@ -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 }}