Merge pull request #30807 from caesarxuchao/change_pod_lister_api

Automatic merge from submit-queue

Continue on #30774: Change podNamespacer API

continue on #30774, credit to @wojtek-t, Ref #30759

I just fixed a test and converted IsActivePod to operate on *Pod.
This commit is contained in:
Kubernetes Submit Queue
2016-08-18 02:08:23 -07:00
committed by GitHub
16 changed files with 79 additions and 60 deletions

View File

@@ -3166,7 +3166,7 @@ func waitForPodsInactive(ps *PodStore, interval, timeout time.Duration) error {
return wait.PollImmediate(interval, timeout, func() (bool, error) {
pods := ps.List()
for _, pod := range pods {
if controller.IsPodActive(*pod) {
if controller.IsPodActive(pod) {
return false, nil
}
}