Merge pull request #131486 from aroradaman/kube-proxy-ipt-init-error

kube-proxy: log errors during proxy boot
This commit is contained in:
Kubernetes Prow Robot
2025-04-26 09:29:23 -07:00
committed by GitHub

View File

@@ -654,8 +654,12 @@ func (runner *runner) ChainExists(table Table, chain Chain) (bool, error) {
trace := utiltrace.New("iptables ChainExists")
defer trace.LogIfLong(2 * time.Second)
_, err := runner.run(opListChain, fullArgs)
return err == nil, err
out, err := runner.run(opListChain, fullArgs)
if err != nil {
klog.ErrorS(err, "Failed to list chain", "chain", chain, "table", table, "output", string(out))
return false, err
}
return true, nil
}
type operation string