-
Notifications
You must be signed in to change notification settings - Fork 126
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
fix(cert-manager): exclude CRDs from cache to avoid excessive memory usage #2258
Conversation
…usage Signed-off-by: Florian Bacher <[email protected]>
✅ Deploy Preview for keptn-lifecycle-toolkit ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2258 +/- ##
===========================================
- Coverage 84.61% 74.01% -10.61%
===========================================
Files 154 80 -74
Lines 9960 5226 -4734
===========================================
- Hits 8428 3868 -4560
+ Misses 1245 1142 -103
+ Partials 287 216 -71
... and 86 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more. |
Signed-off-by: Florian Bacher <[email protected]>
…nto fix/cert-resource-consumption
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
…usage (keptn#2258) Signed-off-by: Florian Bacher <[email protected]>
Closes #2257
This PR disables the cache for CustomResourceDefinitions in the certificate-operator. The reason for that change is to prevent OOMKills in the certificate operator, as when caching is enabled for a certain resource, all existing objects of that resource are retrieved initially and stored in an internal cache. This can be a problem especially for CRDs, which can be particularly large. Also, this means that the memory usage of the operator will be directly affected by the number of CustomResourceDefinitions in the cluster. In my case this caching behavior this lead to either the operator running into OOMKills, or taking over a minute for handling the retrieval of CRDs (if the memory limit has been increased).