Browse Source

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
Andrey Volkov 6 months ago
parent
commit
b26c2cfeff
2 changed files with 3 additions and 0 deletions
  1. 2
    0
      charts/haproxy/templates/bin/_anchor.tpl
  2. 1
    0
      charts/haproxy/values.yaml

+ 2
- 0
charts/haproxy/templates/bin/_anchor.tpl View File

@@ -124,7 +124,9 @@ cleanup() {
124 124
 while true; do
125 125
     if [ -e /tmp/stop ]; then
126 126
         echo Stopping
127
+        {%- if .Values.conf.anchor.enable_cleanup %}
127 128
         cleanup
129
+        {%- end %}
128 130
         break
129 131
     fi
130 132
 

+ 1
- 0
charts/haproxy/values.yaml View File

@@ -41,6 +41,7 @@ conf:
41 41
               - mode tcp
42 42
               - option tcp-check
43 43
               - option redispatch
44
+    enable_cleanup: true
44 45
 
45 46
   haproxy:
46 47
     container_config_dir: /usr/local/etc/haproxy

Loading…
Cancel
Save