Better handling of unbound pods.
A small collection of tweaks to better handle pods when they are not currently bound to a host.
This commit is contained in:
@@ -79,6 +79,9 @@ func (p *PodCache) UpdateAllContainers() {
|
||||
return
|
||||
}
|
||||
for _, pod := range pods.Items {
|
||||
if pod.CurrentState.Host == "" {
|
||||
continue
|
||||
}
|
||||
err := p.updatePodInfo(pod.CurrentState.Host, pod.ID)
|
||||
if err != nil && err != client.ErrPodInfoNotAvailable {
|
||||
glog.Errorf("Error synchronizing container: %v", err)
|
||||
|
Reference in New Issue
Block a user