Merge pull request #4323 from dchen1107/podstatus

Check if kubelet does know such Pod before querying status.
This commit is contained in:
Eric Tune
2015-02-11 11:13:50 -08:00
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
}
}