Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extra check before acquiring lease #1937

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

manuelbuil
Copy link
Collaborator

@manuelbuil manuelbuil commented Apr 12, 2024

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:

  • 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

@manuelbuil manuelbuil merged commit 00014d0 into flannel-io:master Apr 12, 2024
8 checks passed
@manuelbuil manuelbuil deleted the addExtraCheck branch April 12, 2024 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants