• Cedric Lamoriniere's avatar
    Retry fed-lb-svc creation on diff NodePort during e2e tests · e033d8c6
    Cedric Lamoriniere authored
    Currently, in federated end2end tests, the creation of services are
    done with a randomize NodePort selection. It causing e2e test
    flakes if the creation of a federated service failed if the port is
    not available.
    Now the util.CreateService(...) function is re trying to create the
    service on different nodePort in an error case. The method retries until
    success or 10 creation retry with other random NodePorts.
    If never the service has not been created properly on one of the
    federated cluster, a Service shards cleanup is executed before retrying
    again the federated service creation.
    
    fixes #44018
    e033d8c6
service.go 16 KB