Check if kubelet does know such Pod before querying status.

This commit is contained in:
Dawn Chen
2015-02-09 13:55:36 -08:00
parent 2c2a59568c
commit f5f2b6f773
3 changed files with 58 additions and 33 deletions

View File

@@ -242,6 +242,7 @@ func podsOnMinions(c *client.Client, pods api.PodList) wait.ConditionFunc {
return false, nil
}
if _, err := podInfo.GetPodStatus(host, namespace, id); err != nil {
glog.Infof("GetPodStatus error: %v", err)
return false, nil
}
}