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

Try several times to contact kube-api before failing #1977

Merged
merged 1 commit into from
May 27, 2024

Conversation

manuelbuil
Copy link
Collaborator

@manuelbuil manuelbuil commented May 24, 2024

Description

When the code tries to get a lease, it contacts kube-api. If dor some reason, the connectivity failed, flanneld will error out and the registration of the network will fail. This PR makes it try several times before really failing so that we can be more resilient.

This PR also replaces some wait.Poll() calls. That one is deprecated

Todos

  • Tests
  • Documentation
  • Release note

Release Note

Retry contacting kube-api when acquiring a lease if it fails

@manuelbuil manuelbuil force-pushed the addWaits branch 2 times, most recently from 6bbdb19 to eeebe69 Compare May 24, 2024 11:04
Signed-off-by: Manuel Buil <mbuil@suse.com>
@manuelbuil manuelbuil merged commit 727fc08 into flannel-io:master May 27, 2024
8 checks passed
@manuelbuil manuelbuil deleted the addWaits branch May 27, 2024 14:23
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