Open jrwren opened 1 year ago
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.
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
Checklist