From c960dafe072b418537845df7f99cae6259141e20 Mon Sep 17 00:00:00 2001 From: rambohe Date: Thu, 4 Nov 2021 02:36:42 +0800 Subject: [PATCH] enhancement: skip ensure iptables rule error for yurthub (#458) --- pkg/yurthub/network/iptables.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/yurthub/network/iptables.go b/pkg/yurthub/network/iptables.go index 0d2a2d2c237..b3090d70154 100644 --- a/pkg/yurthub/network/iptables.go +++ b/pkg/yurthub/network/iptables.go @@ -79,7 +79,7 @@ func (im *IptablesManager) EnsureIptablesRules() error { _, err := im.iptables.EnsureRule(rule.pos, rule.table, rule.chain, rule.args...) if err != nil { klog.Errorf("could not ensure iptables rule(%s -t %s %s %s), %v", rule.pos, rule.table, rule.chain, strings.Join(rule.args, ","), err) - return err + continue } } return nil