-
Notifications
You must be signed in to change notification settings - Fork 41.3k
defaultservicecidr controller no shutdown eventbroadcaster on start #133338
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
Conversation
The defaultservicecidr controller runs as an apiserver PostStartHook hence can not block the startup. The logic of the controller was copied from the common boilerplate and was assuming the controller blocked on start, hence defering the shutdown of the eventbroadcaster. Only shutdown the eventbroadcaster when the context is done. Change-Id: I70426d5550afe3b12ab5ea68746238dd96f7db52
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-sigs/prow repository. |
/assign @danwinship |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aojea 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 |
go func() { | ||
<-ctx.Done() | ||
klog.Infof("Shutting down %s", controllerName) | ||
c.eventBroadcaster.Shutdown() |
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.
someone ought to context-ify EventBroadcaster...
/lgtm |
LGTM label has been added. Git tree hash: cad7b6a09401eff1ce090d42e95144ec7ad4e138
|
/remove-sig api-machinery |
The defaultservicecidr controller runs as an apiserver PostStartHook hence can not block the startup.
The logic of the controller was copied from the common boilerplate and was assuming the controller blocked on start, hence defering the shutdown of the eventbroadcaster.
Only shutdown the eventbroadcaster when the context is done.
/kind bug
Fixes: #133306