mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-10-22 06:59:03 +00:00
[Federation][init-06] Check for the availability of federation API server's service loadbalancer address before waiting.
This speeds up the tests. Otherwise tests end up unnecessarily waiting for the poll interval/duration which is 5 seconds right now.
This commit is contained in:
@@ -242,7 +242,7 @@ func waitForLoadBalancerAddress(clientset *client.Clientset, svc *api.Service) (
|
||||
ips := []string{}
|
||||
hostnames := []string{}
|
||||
|
||||
err := wait.PollInfinite(lbAddrRetryInterval, func() (bool, error) {
|
||||
err := wait.PollImmediateInfinite(lbAddrRetryInterval, func() (bool, error) {
|
||||
pollSvc, err := clientset.Core().Services(svc.Namespace).Get(svc.Name)
|
||||
if err != nil {
|
||||
return false, nil
|
||||
|
Reference in New Issue
Block a user