We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents effec6b + 9120e05 commit bb8bbbeCopy full SHA for bb8bbbe
images/router/haproxy/reload-haproxy
@@ -73,8 +73,12 @@ retries=20
73
74
75
# sort the path based map files for the haproxy map_beg function
76
+# Leaving any wildcard route at the end of the resulting file,
77
+# See https://github.com/openshift/origin/issues/16724 for more details.
78
for mapfile in "$haproxy_conf_dir"/*.map; do
- sort -r "$mapfile" -o "$mapfile"
79
+ grep -v -F '^[^\.]*\' "$mapfile" | sort -r -o "/tmp/$mapfile"
80
+ grep -F '^[^\.]*\' "$mapfile" | sort -r >> "/tmp/$mapfile"
81
+ mv -f "/tmp/$mapfile" "$haproxy_conf_dir/$mapfile"
82
done
83
84
old_pids=$(ps -A -opid,args | grep haproxy | egrep -v -e 'grep|reload-haproxy' | awk '{print $1}' | tr '\n' ' ')
0 commit comments