mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
Merge pull request #21781 from ncdc/skip-probe-if-container-id-not-set
Skip probe if container ID not yet set
This commit is contained in:
commit
a7165042af
@ -152,9 +152,9 @@ func (w *worker) doProbe() (keepGoing bool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
c, ok := api.GetContainerStatus(status.ContainerStatuses, w.container.Name)
|
c, ok := api.GetContainerStatus(status.ContainerStatuses, w.container.Name)
|
||||||
if !ok {
|
if !ok || len(c.ContainerID) == 0 {
|
||||||
// Either the container has not been created yet, or it was deleted.
|
// Either the container has not been created yet, or it was deleted.
|
||||||
glog.V(3).Infof("Non-existant container probed: %v - %v",
|
glog.V(3).Infof("Probe target container not found: %v - %v",
|
||||||
format.Pod(w.pod), w.container.Name)
|
format.Pod(w.pod), w.container.Name)
|
||||||
return true // Wait for more information.
|
return true // Wait for more information.
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user