fix tests; convert IsPodActive to operate on *Pod

This commit is contained in:
Chao Xu
2016-08-17 13:05:37 -07:00
parent 331083727f
commit 594234d61c
5 changed files with 10 additions and 6 deletions

View File

@@ -633,7 +633,7 @@ func countAvailablePods(pods []api.Pod, minReadySeconds int32) int32 {
// IsPodAvailable return true if the pod is available.
func IsPodAvailable(pod *api.Pod, minReadySeconds int32, now time.Time) bool {
if !controller.IsPodActive(*pod) {
if !controller.IsPodActive(pod) {
return false
}
// Check if we've passed minReadySeconds since LastTransitionTime