From d8a801a7a2e39bc18d53991404baf2c41a67884f Mon Sep 17 00:00:00 2001 From: cyclinder Date: Sun, 14 Nov 2021 14:12:43 +0800 Subject: [PATCH] kube-proxy remove todo: call iptables -S first when delete chain Signed-off-by: cyclinder --- pkg/util/iptables/iptables.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/util/iptables/iptables.go b/pkg/util/iptables/iptables.go index 0c1a521811e..aca17fb2145 100644 --- a/pkg/util/iptables/iptables.go +++ b/pkg/util/iptables/iptables.go @@ -285,7 +285,6 @@ func (runner *runner) DeleteChain(table Table, chain Chain) error { runner.mu.Lock() defer runner.mu.Unlock() - // TODO: we could call iptables -S first, ignore the output and check for non-zero return (more like DeleteRule) out, err := runner.run(opDeleteChain, fullArgs) if err != nil { return fmt.Errorf("error deleting chain %q: %v: %s", chain, err, out)