Make haproxy-anchor cleanup optional
Continuation of Ia1449d188c15b71dd756e96b1ea2d4a672011a17. This patch creates the additional var "conf.anchor.enable_cleanup" that is true by default. False value will effectively disable cleanup procedure. Change-Id: I7f74454190dcd1d563d6cb3c9fef8504a3e0806a
This commit is contained in:
parent
bd9a1b00ca
commit
b26c2cfeff
|
@ -124,7 +124,9 @@ cleanup() {
|
||||||
while true; do
|
while true; do
|
||||||
if [ -e /tmp/stop ]; then
|
if [ -e /tmp/stop ]; then
|
||||||
echo Stopping
|
echo Stopping
|
||||||
|
{%- if .Values.conf.anchor.enable_cleanup %}
|
||||||
cleanup
|
cleanup
|
||||||
|
{%- end %}
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -41,6 +41,7 @@ conf:
|
||||||
- mode tcp
|
- mode tcp
|
||||||
- option tcp-check
|
- option tcp-check
|
||||||
- option redispatch
|
- option redispatch
|
||||||
|
enable_cleanup: true
|
||||||
|
|
||||||
haproxy:
|
haproxy:
|
||||||
container_config_dir: /usr/local/etc/haproxy
|
container_config_dir: /usr/local/etc/haproxy
|
||||||
|
|
Loading…
Reference in New Issue