fix: stop caching Helm release secrets in the operator · cloudnative-pg/cloudnative-pg@cd07932 · GitHub
Skip to content

Commit cd07932

Browse files
leonardoceNiccoloFei
authored andcommitted
fix: stop caching Helm release secrets in the operator
Clusters with large Helm releases installed alongside CloudNativePG were seeing the operator's memory usage spike and, in some cases, crashloop. The operator's controller-runtime cache was keeping a full copy of every Secret in the watched namespace(s), including the large Helm release manifests Helm stores as Secrets, even though the operator never reads them. Helm release Secrets are now excluded from the cache, so they are no longer listed, watched, or held in memory. Closes: #10924 Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com>
1 parent 843b4df commit cd07932

1 file changed

Lines changed: 23 additions & 7 deletions

File tree

‎internal/cmd/manager/controller/controller.go‎

Lines changed: 23 additions & 7 deletions

0 commit comments

Comments
 (0)