In certain windows environments, the host network is not ready by the time we acquire the lease, which makes flannel crash. This PR makes an additional check before acquiring the lease, so that we are sure the network is ready by the time we try acquiring the lease.
Apart from that, the PR:
adds a bit more context to the errors in windows
updates test golang version to 1.21 (in sync with go.mod)
Fixed gofmt problems in lease.go
Todos
[ ] Tests
[ ] Documentation
[ ] Release note
Release Note
Check network is ready before acquiring lease in windows
Description
In certain windows environments, the host network is not ready by the time we acquire the lease, which makes flannel crash. This PR makes an additional check before acquiring the lease, so that we are sure the network is ready by the time we try acquiring the lease.
Apart from that, the PR:
Todos
Release Note