|
|
@ -32,7 +32,7 @@ func isPodReady(pod *v1.Pod) bool {
|
|
|
|
return isPodReadyConditionTrue(pod.Status)
|
|
|
|
return isPodReadyConditionTrue(pod.Status)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// isPodReady retruns true if a pod is ready; false otherwise.
|
|
|
|
// isPodReadyConditionTrue returns true if a pod is ready; false otherwise.
|
|
|
|
func isPodReadyConditionTrue(status v1.PodStatus) bool {
|
|
|
|
func isPodReadyConditionTrue(status v1.PodStatus) bool {
|
|
|
|
condition := getPodReadyCondition(status)
|
|
|
|
condition := getPodReadyCondition(status)
|
|
|
|
return condition != nil && condition.Status == v1.ConditionTrue
|
|
|
|
return condition != nil && condition.Status == v1.ConditionTrue
|
|
|
|