Skip to content
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

don't cache secrets #1037

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jrwren
Copy link

@jrwren jrwren commented Aug 15, 2023

Description

Don't cache secrets. controller-runtime uses watches to update its cache, effectively caching every object, not just namespaced objects. See: https://stackoverflow.com/questions/75412402/golang-client-pkg-how-to-execute-a-list-secret-under-a-resourcenames-restric

On clusters with a large number of large secrets, the memory usage of the cache is too large. This isn't needed so don't do it.

Type of Change

  • Bug Fix

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

@jrwren jrwren requested a review from a team as a code owner August 15, 2023 14:45
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.

None yet

1 participant