Merge pull request #3882 from weaveworks/3847-sleep-before-ipset-destroy

Workaround to fix ipset conflict with iptables
This commit is contained in:
Bryan Boreham authored and GitHub committed 2021-01-18 14:09:19 +00:00
commit b1651c322a
1 file changed
+2
+2
View File
@@ -21,6 +21,8 @@ xt_set_exists() {
fi
iptables -w -F WEAVE-KUBE-TEST
iptables -w -X WEAVE-KUBE-TEST
# delay to allow kernel to clean up - see https://github.com/weaveworks/weave/issues/3847
sleep 1
ipset destroy weave-kube-test
[ -z "$NOT_EXIST" ] || (echo "\"xt_set\" does not exist" >&2 && return 1)
}