mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-12-03 12:40:47 +00:00
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
16 KiB
16 KiB