banzaicloud / koperator

Oh no! Yet another Apache Kafka operator for Kubernetes
Apache License 2.0
789 stars 198 forks source link

don't cache secrets #1037

Open jrwren opened 1 year ago

jrwren commented 1 year ago

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