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

Improve cni windows code #5421

Merged
merged 1 commit into from
Feb 12, 2024
Merged

Conversation

manuelbuil
Copy link
Contributor

Proposed Changes

This PR does a few things:
1 - Fixes a bug in calico which prevented pods from starting (config should have "Calico" instead of "calico")
2 - Increases time out to 30s. I saw twice during my tests that sometimes 20s is not enough for the interfaces to come back in Windows
3 - Similarly to Flannel, before starting Calico, we check if the node is present in kube-api to avoid potential issues
4 - Instead of using an infinite loop to start calico, we use wait.PollImmediateWithContext with a time out of 5 minutes
5 - Flannel's wait.PollImmediateWithContext now return an error

Types of Changes

Bugfix

Verification

Just verify that rke2 still works with flannel and calico

Testing

Linked Issues

#5415

User-Facing Change


Further Comments

Signed-off-by: Manuel Buil <mbuil@suse.com>
@manuelbuil manuelbuil requested a review from a team as a code owner February 12, 2024 08:02
@manuelbuil
Copy link
Contributor Author

I have just tested this deploying with Calico and Flannel and it works :)

@manuelbuil manuelbuil merged commit 6390104 into rancher:master Feb 12, 2024
2 checks passed
@manuelbuil manuelbuil deleted the improveWaitsWindows branch February 12, 2024 14:51
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.

None yet

3 participants