Merge "Make haproxy-anchor cleanup optional"

This commit is contained in:
Zuul 2018-10-23 15:22:43 +00:00 committed by Gerrit Code Review
commit 034c43cf17
2 changed files with 3 additions and 0 deletions

View File

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

View File

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