Consider Pod Phase in IsReadyPod (#1080)

This commit is contained in:
Bhavin Gandhi
2019-01-28 13:15:38 +08:00
committed by Ta-Ching Chen
parent 6893403ba7
commit 1806259637
2 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -305,7 +305,7 @@ func (gp *GenericPool) specializePod(pod *apiv1.Pod, metadata *metav1.ObjectMeta
// for fetcher we don't need to create a service, just talk to the pod directly
podIP := pod.Status.PodIP
if len(podIP) == 0 {
return errors.New("Pod has no IP")
return errors.Errorf("Pod %s in namespace %s has no IP", pod.ObjectMeta.Name, pod.ObjectMeta.Namespace)
}
// specialize pod with service
if gp.useIstio {