mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
Merge pull request #106406 from cyclinder/remove_DeleteChain_TODO
kube-proxy remove todo: call iptables -S first when delete chain
This commit is contained in:
commit
b8c1b38261
@ -285,7 +285,6 @@ func (runner *runner) DeleteChain(table Table, chain Chain) error {
|
|||||||
runner.mu.Lock()
|
runner.mu.Lock()
|
||||||
defer runner.mu.Unlock()
|
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)
|
out, err := runner.run(opDeleteChain, fullArgs)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("error deleting chain %q: %v: %s", chain, err, out)
|
return fmt.Errorf("error deleting chain %q: %v: %s", chain, err, out)
|
||||||
|
Loading…
Reference in New Issue
Block a user