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:
Tim Hockin
2014-09-28 21:29:39 -07:00
parent 6947331290
commit 372aa07b58
4 changed files with 19 additions and 5 deletions

View File

@@ -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)