mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 08:55:55 -04:00
kube-proxy: log errors during proxy boot
Signed-off-by: Daman Arora <aroradaman@gmail.com>
This commit is contained in:
parent
fe5afa919b
commit
9cb3dfb5d3
1 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue