Merge current branch v2.4 into master

This commit is contained in:
Tom Moulard 2021-04-21 11:32:14 +02:00
commit ac486d3d1d
8 changed files with 97 additions and 4 deletions

View file

@ -548,7 +548,7 @@ func loadService(client Client, namespace string, backend networkingv1.IngressBa
}
if port == 0 {
return nil, errors.New("cannot define a port")
continue
}
protocol := getProtocol(portSpec, portName, svcConfig)
@ -562,6 +562,10 @@ func loadService(client Client, namespace string, backend networkingv1.IngressBa
}
}
if len(svc.LoadBalancer.Servers) == 0 {
return nil, errors.New("no valid subset found")
}
return svc, nil
}