Skip to content

Conversation

videlov
Copy link
Contributor

@videlov videlov commented Jul 1, 2025

With the #877 change we noticed a performance degradation with Reloader on one of our clusters, having quite a lot of traffic with constant changes to CMs and Secrets. With the current implementation we are getting into API Server rate limiting issues.

When upgrade starts all the resources per kind are fetched with the ItemsFunc and right after that for each of the items it is again re-fetched with the ItemFunc. This is suboptimal and brings quite a lot more unnecessary API calls. We should re-fetch resource only when there is a conflict error. This approach is implemented with this change.

Copy link
Contributor

@s10 s10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works well to me

@videlov videlov requested a review from s10 July 2, 2025 10:21
Copy link
Contributor

@msafwankarim msafwankarim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! Thanks for submitting the PR. Looks good to me, pipeline is failing because of 429. I'm approving PR right now, we will re-run link check action after some time and then we can go ahead and merge this. Thank you!

@msafwankarim msafwankarim merged commit 1717fe9 into stakater:master Jul 2, 2025
13 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants