rancher-sandbox / rancher-desktop

Container Management and Kubernetes on the Desktop
https://rancherdesktop.io
Apache License 2.0
5.62k stars 263 forks source link

Wait for traefik before calling get_host() #6904

Closed jandubois closed 2 weeks ago

jandubois commented 2 weeks ago

On Windows get_host() gets the IP address from the traefik service, and will fail with an empty return value if the service is not yet ready.

The assert failures in get_host() don't cause a direct test failure if $(get_host) is just interpolated into a string, so it needs to be called once by itself.

Sample failure that should be fixed by this: https://github.com/rancher-sandbox/rancher-desktop/actions/runs/9104774312/job/25029228803

Note that the wasm.bats test already had this check: https://github.com/rancher-sandbox/rancher-desktop/blob/7bffdd78a78f664ac9565025a552e68d43a4f2de/bats/tests/k8s/wasm.bats#L105-L107