func (j *TestJig) WaitForNewIngressIP(existingIP string, timeout time.Duration) (*v1.Service, error) {
	framework.Logf("Waiting up to %v for service %q to get a new ingress IP", timeout, j.Name)
	service, err := j.waitForCondition(timeout, "have a new ingress IP", func(svc *v1.Service) bool {
		if len(svc.Status.LoadBalancer.Ingress) == 0 {
			return false
		}
		ip := svc.Status.LoadBalancer.Ingress[0].IP
		if ip == "" || ip == existingIP {
			return false
		}
		return true
	})
	if err != nil {
		return nil, err
	}
	return j.sanityCheckService(service, v1.ServiceTypeLoadBalancer)
}
// WaitForNewIngressIP waits for the given service to get a new ingress IP, or returns an error after the given timeout
WaitForNewIngressIP waits for the given service to get a new ingress IP, or returns an error after the given timeout
// WaitForNewIngressIP waits for the given service to get a new ingress IP or returns an error after the given timeout
func (j *TestJig) WaitForNewIngressIP(existingIP string, timeout time.Duration) (*v1.Service, error) {
	framework.Logf("Waiting up to %v for service %q to get a new ingress IP", timeout, j.Name)
	service, err := j.waitForCondition(timeout, "have a new ingress IP", func(svc *v1.Service) bool {
		if len(svc.Status.LoadBalancer.Ingress) == 0 {
			return false
		}
		ip := svc.Status.LoadBalancer.Ingress[0].IP
		if ip == "" || ip == existingIP {
			return false
		}
		return true
	})
	if err != nil {
		return nil, err
	}
	return j.sanityCheckService(service, v1.ServiceTypeLoadBalancer)
}
func ( j * TestJig ) WaitForNewIngressIP ( existingIP string , timeout time . Duration ) ( * v1 . Service , error ) { framework . Logf ( " " , timeout , j . Name ) service , err := j . waitForCondition ( timeout , " " , func ( svc * v1 . Service ) bool { if len ( svc . Status . LoadBalancer . Ingress ) == 0 { return false } ip := svc . Status . LoadBalancer . Ingress [ 0 ] . IP if ip == " " || ip == existingIP { return false } return true } ) if err != nil { return nil , err } return j . sanityCheckService ( service , v1 . ServiceTypeLoadBalancer ) }
WaitForNewIngressIP waits for the given service to get a new ingress IP, or returns an error after the given timeout
WaitForNewIngressIP waits for the given service to get a new ingress IP or returns an error after the given timeout