By(fmt.Sprintf("Successfully validated that service %s in namespace %s exposes endpoints %v (%v elapsed)",serviceName,namespace,expectedEndpoints,time.Since(start)))
return
}
time.Sleep(time.Second)
Logf("Unexpected number of endpoints: found %v, expected %v (%v elapsed, ignoring for 5s)",portsByIp,expectedEndpoints,time.Since(start))
}
By(fmt.Sprintf("successfully validated endpoints %v with on service %s/%s",expectedEndpoints,ns,serviceName))
Failf("Timed out waiting for service %s in namespace %s to expose endpoints %v (%v elapsed)",serviceName,namespace,expectedEndpoints,serviceStartTimeout)