-
Notifications
You must be signed in to change notification settings - Fork 6.5k
fix: use informer in webhook handler to reduce memory usage #24622
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
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
blakepettersson
left a comment
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.
LGTM!
Signed-off-by: Alexander Matyushentsev <[email protected]>
ebfce38 to
35a087b
Compare
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.
Nice! Seems safe to backport as well.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #24622 +/- ##
=========================================
Coverage ? 60.44%
=========================================
Files ? 350
Lines ? 60174
Branches ? 0
=========================================
Hits ? 36375
Misses ? 20856
Partials ? 2943 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Alexander Matyushentsev <[email protected]>
|
❌ Cherry-pick failed for 3.0. Please check the workflow logs for details. |
|
🍒 Cherry-pick PR created for 3.2: #24623 |
|
❌ Cherry-pick failed for 3.1. Please check the workflow logs for details. |
|
❌ Cherry-pick failed for 2.14. Please check the workflow logs for details. |
…ick #24622 for 3.2) (#24623) Signed-off-by: Alexander Matyushentsev <[email protected]> Co-authored-by: Alexander Matyushentsev <[email protected]>
…#24622) Signed-off-by: Alexander Matyushentsev <[email protected]>
…#24622) Signed-off-by: Alexander Matyushentsev <[email protected]>
…#24622) Signed-off-by: Alexander Matyushentsev <[email protected]>
…24628) Signed-off-by: Alexander Matyushentsev <[email protected]>
…24627) Signed-off-by: Alexander Matyushentsev <[email protected]>
…24626) Signed-off-by: Alexander Matyushentsev <[email protected]>
Closes #24621
Checklist:
We've profiled an Argo CD instance affected by #24621 and discovered that memory spike is happening because webhook is trying to list all applications managed by instance. The PR improves memory usage by leveraging existing applications informer.