Merge pull request #44991 from aaronlevy/cns
Automatic merge from submit-queue
Skip inspecting pod network if unknown namespace
**What this PR does / why we need it**:
If we fail to determine the network namespace of a container we still try to inspect the state - even though there is no way for it to succeed. This leads to errors like:
> NetworkPlugin cni failed on the status hook for pod "X": Unexpected command output nsenter: cannot open : No such file or directory
Instead, if we cannot determine the network namespace, we should just exit with a (hopefully) more clear error message.
I left the wording as assuming a terminated pod, based on:
https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/dockershim/helpers.go#L208-L211
ref:
https://github.com/kubernetes-incubator/bootkube/issues/475
https://github.com/coreos/coreos-kubernetes/issues/856
Showing
Please
register
or
sign in
to comment