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

[Backport release-1.31] Always skip controller-runtime name validation #5511

Open
wants to merge 3 commits into
base: release-1.31
Choose a base branch
from

Conversation

twz123
Copy link
Member

@twz123 twz123 commented Feb 4, 2025

Add some debug logs whenever running the worker failed. This helps when
troubleshooting issues.

Signed-off-by: Tom Wieczorek <[email protected]>
(cherry picked from commit c3cf50a)
(cherry picked from commit 87f65b2)
It's not necessary to have two successive retry loops. In fact, it's
counterproductive because indexers can only be registered with a manager
once. A second attempt will result in an index conflict error. However,
this is not a problem if the manager is created in the same retry loop.

Signed-off-by: Tom Wieczorek <[email protected]>
(cherry picked from commit fb08b11)
(cherry picked from commit 5ec4a78)
Controller-runtime maintains a global checklist of controller names and
does not currently provide a way to unregister the controller names used
by discarded managers. The autopilot controller and worker components
accidentally share some controller names. So it's necessary to suppress
the global name check because the order in which components are started
is not fully guaranteed for k0s controller nodes running an embedded
worker.

Fixes: 79b9596 ("Bump Kubernetes to v1.31.0")
Signed-off-by: Tom Wieczorek <[email protected]>
(cherry picked from commit 2eb6c63)
(cherry picked from commit 0f459cf)
@twz123 twz123 added bug Something isn't working component/autopilot labels Feb 4, 2025
@twz123 twz123 marked this pull request as ready for review February 7, 2025 08:45
@twz123 twz123 requested a review from a team as a code owner February 7, 2025 08:45
@twz123 twz123 requested review from ncopa and makhov February 7, 2025 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component/autopilot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant