-
Notifications
You must be signed in to change notification settings - Fork 4k
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: Propagate stop channel to prevent resource leaks in VPA components #7661
fix: Propagate stop channel to prevent resource leaks in VPA components #7661
Conversation
Signed-off-by: Omer Aplatony <[email protected]>
I'm curious, did you observe any actual issues with the current implementation? Can you help me understand which error scenario this change covers? My understanding is that if the |
I didn't observe any specific issues, and you're mostly correct. but, for graceful shutdowns (e.g., during rolling updates or controlled scaling down), it's better to ensure proper cleanup. By adding |
Thanks for helping me understand! I guess we can make a mental note to switch this to |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: omerap12, voelzmo 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 |
I agree. Ill open an issue so we won't forget about this :) |
/lgtm |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Fixes potential resource leaks and improves shutdown handling in VPA components by properly propagating stop channels. Previously, some components were creating their own stop channels which could lead to improper cleanup during shutdown. Adds proper cache synchronization checks.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: