Fixing condition

Signed-off-by: ds-ms <desattir@microsoft.com>
pull/5264/head
ds-ms 6 years ago
parent 1d95d8396b
commit 914545851e

@ -279,7 +279,7 @@ func isPodReady(pod *v1.Pod) bool {
func (c *Client) ingressesReady(ingresses []extensions.Ingress) bool { func (c *Client) ingressesReady(ingresses []extensions.Ingress) bool {
for _, ingress := range ingresses { 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()) c.Log("Ingress is not ready: %s/%s", ingress.GetNamespace(), ingress.GetName())
return false return false
} }

Loading…
Cancel
Save