Commit 91454585 authored by ds-ms's avatar ds-ms

Fixing condition

Signed-off-by: 's avatards-ms <desattir@microsoft.com>
parent 1d95d839
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment