-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
helm: fix a memory leak resulting from too many k8s client instantiations #6026
helm: fix a memory leak resulting from too many k8s client instantiations #6026
Conversation
…ions. See operator-framework/helm-operator-plugins#198 for a detailed description of the issue. This commit ports over the relevant changes. Signed-off-by: Malte Isberner <malte.isberner@gmail.com>
a9eca3f
to
0f7d40d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@misberner Thanks for the contribution! Apologies for taking so long to get around to reviewing this, but the changes look good to me.
I'd like to get another set of eyes on this prior to merging. @varshaprasad96 would you mind taking a look at this?
FYI, I think this one is hitting us on one of our customer deployments, infinidat CSI driver which is helm based. |
This looks reasonable, but I would prefer to have the tests ported over. They'll get run in our CI, and they'll be deleted along with this stuff when we move over to actually using helm-operator-plugins. |
Hello, Is there any ETA on this review to be merged? I am hitting the issue where our operator is consuming 3G+ of memory, which I am guessing this PR will resolve. |
dunno where OP is, i'll merge this and add the tests myself |
See operator-framework/helm-operator-plugins#198 for a detailed description of the issue. This commit ports over the relevant changes.
I assume that eventually, the generic
helm-operator
code in this repo should depend on github.com/operator-framework/helm-operator-plugins. However, because the latter repo is still marked as experimental, and importing it would result in a large number of accidental dependency changes, I have decided to merely copy code over.I've tried to minimize changes to both the copied code as well as the existing code in this repo. Because the bulk of the code is copied, I don't think replicating tests would be useful, but I can see if I can copy them over if it turns out to be not too much effort.
Description of the change: Fix a memory leak in the Helm operator code.
Motivation for the change: Excessive memory usage of Helm operators (2GB+)
Checklist
If the pull request includes user-facing changes, extra documentation is required:
Add a new changelog fragment inchangelog/fragments
(seechangelog/fragments/00-template.yaml
)Add or update relevant sections of the docs website inwebsite/content/en/docs