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
Clean shutdown of nodeipam controller #113620
Conversation
@wojtek-t: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: wojtek-t 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 |
9fe92c8
to
508da7a
Compare
@@ -151,7 +159,9 @@ func (nc *Controller) Run(stopCh <-chan struct{}) { | |||
return | |||
} | |||
|
|||
if nc.allocatorType != ipam.IPAMFromClusterAllocatorType && nc.allocatorType != ipam.IPAMFromCloudAllocatorType { | |||
if nc.allocatorType == ipam.IPAMFromClusterAllocatorType || nc.allocatorType == ipam.IPAMFromCloudAllocatorType { | |||
go nc.legacyIPAM.Run(stopCh) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was tricky
if dg := runtime.NumGoroutine() - before; dg <= 9 { | ||
// TODO(#108483): Figure out if we can reduce this | ||
// further (ideally down to zero). | ||
if dg := runtime.NumGoroutine() - before; dg <= 4 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is incredible
/lgtm Thanks |
508da7a
to
7253f70
Compare
New changes are detected. LGTM label has been removed. |
Just fixed gofmt - retagging. |
/retest |
Ref #108483
/kind cleanup
/priority important-longterm
/sig network
/assign @aojea