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

Replace k3s cloud provider wrangler controller with core node informer #2843

Merged
merged 2 commits into from
Jan 23, 2021

Conversation

brandond
Copy link
Member

@brandond brandond commented Jan 22, 2021

Proposed Changes

Replace k3s cloud provider wrangler controller with core node informer

Upstream k8s has exposed an interface for cloud providers to access the
cloud controller manager's node cache and shared informer since
Kubernetes 1.9. This is used by all the other in-tree cloud providers;
we should use it too instead of running a dedicated wrangler controller.

Doing so also appears to fix an intermittent issue with the uninitialized
taint not getting cleared on nodes in CI.

Types of Changes

  • bugfix
  • cloud-provider

Verification

See CI failures in linked issue

Linked Issues

Related to #2841

Further Comments

Upstream k8s has exposed an interface for cloud providers to access the
cloud controller manager's node cache and shared informer since
Kubernetes 1.9. This is used by all the other in-tree cloud providers;
we should use it too instead of running a dedicated wrangler controller.

Doing so also appears to fix an intermittent issue with the uninitialized
taint not getting cleared on nodes in CI.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
@brandond brandond requested a review from a team as a code owner January 22, 2021 10:45
@galal-hussein
Copy link
Contributor

any idea why this change solved the taint issue?

@brandond
Copy link
Member Author

brandond commented Jan 22, 2021

@galal-hussein I am not sure why wrangler is having trouble updating its caches. I know that we are a fair bit behind on wrangler in general; rather than tackle updating it (which would touch a bunch of other things) it seemed simpler to pull it out of here in favor of the shared informer approach that other cloud providers use.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
@brandond brandond merged commit f152f65 into k3s-io:master Jan 23, 2021
@brandond brandond deleted the fix_2841 branch June 6, 2024 21:18
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.

4 participants