-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Fix crash on kube manager's service-lb-controller after v1.31.0. #128182
Conversation
Test result:
|
can we have an unit test @carlory ? I think |
the job integration failure seems related, wonder if we have some code depending on this behavior 🤔 |
Need to add a new unit test. I will do it later. |
Co-authored-by: Antonio Ojea <antonio.ojea.garcia@gmail.com>
/lgtm @thockin can you approve the service controller changes? |
LGTM label has been added. Git tree hash: a37bfd93b61cfaed586c8d0e657e89626c2a2d69
|
cc @oliviassss |
/label tide/merge-method-squash |
/hold cancel
the test has been modified and it fails without the fix now |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aojea, carlory, soltysh, thockin The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…ernetes#128182) * Fix crash on kube manager's service-lb-controller after v1.31.0. * Update cmd/kube-controller-manager/app/controllermanager_test.go Co-authored-by: Antonio Ojea <antonio.ojea.garcia@gmail.com> --------- Co-authored-by: Antonio Ojea <antonio.ojea.garcia@gmail.com>
/triage accepted |
…182-upstream-release-1.31 Automated cherry pick of #128182: Fix crash on kube manager's service-lb-controller after v1.31.0.
What type of PR is this?
/kind bug
/kind regression
What this PR does / why we need it:
If the init fails, we shouldn't register event handlers. It will cause a crash since #122145 is merged.
There's a memory leak in the code. the queue has no worker to consume the event.
Which issue(s) this PR fixes:
Fixes #128121
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: