From 914545851e8acec2dfc6c06eb673bef7e9c67895 Mon Sep 17 00:00:00 2001 From: ds-ms Date: Thu, 14 Feb 2019 14:10:56 +0530 Subject: [PATCH] Fixing condition Signed-off-by: ds-ms --- pkg/kube/wait.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kube/wait.go b/pkg/kube/wait.go index 6de57cfd6..cd66edf95 100644 --- a/pkg/kube/wait.go +++ b/pkg/kube/wait.go @@ -279,7 +279,7 @@ func isPodReady(pod *v1.Pod) bool { func (c *Client) ingressesReady(ingresses []extensions.Ingress) bool { for _, ingress := range ingresses { - if &ingress.Status == nil && len(ingress.Status.LoadBalancer.Ingress) > 0 { + if &ingress.Status == nil || len(ingress.Status.LoadBalancer.Ingress) == 0 { c.Log("Ingress is not ready: %s/%s", ingress.GetNamespace(), ingress.GetName()) return false }