Fix a regression where we never cleared out failed nodes.

This commit is contained in:
Brendan Burns
2015-02-05 09:37:29 -08:00
parent 5de2e916e5
commit 6d0b8ea7a7
3 changed files with 41 additions and 1 deletions

View File

@@ -166,7 +166,8 @@ func FilterActivePods(pods []api.Pod) []api.Pod {
var result []api.Pod
for _, value := range pods {
if api.PodSucceeded != value.Status.Phase &&
api.PodFailed != value.Status.Phase {
api.PodFailed != value.Status.Phase &&
api.PodUnknown != value.Status.Phase {
result = append(result, value)
}
}