-
Notifications
You must be signed in to change notification settings - Fork 98
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
[features] migrate OOM kill #479
Conversation
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.
This pull request does not contain a valid label. Please add one of the following labels: bug, enhancement, refactoring, documentation, tooling
27fae79
to
cfc4fb6
Compare
IsRequired *bool | ||
Containers []apicommonv1.AgentContainerName |
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.
suggested rename, wdyt @clamoriniere ?
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.
Much better, thanks
Codecov Report
@@ Coverage Diff @@
## main #479 +/- ##
=======================================
Coverage 59.68% 59.68%
=======================================
Files 3 3
Lines 129 129
=======================================
Hits 77 77
Misses 40 40
Partials 12 12
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
IsRequired *bool | ||
Containers []apicommonv1.AgentContainerName |
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.
Much better, thanks
} | ||
|
||
return feature.RequiredComponents{ | ||
Agent: feature.RequiredComponent{IsRequired: &f.enable}, |
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.
here by setting the IsRequired: false
when f.enable
is false make the Agent
globally unwanted (with the current logic implemented in the Feature Factory).
the idea was:
- set to
false
: we should not deploy this component - nil: the feature don't need it, but don't care if it is deployed
- set to
true
: the feature need this component.
we can revisite the logic.
But I would suggest to no set it if f.enable == false
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.
right, thanks for catching that. i also forgot to add containers
* [features] migrate oom kill
What does this PR do?
Migrate OOM kill check to use FeatureFactory.
This requires #430 before merging.
Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Describe your test plan
Write there any instructions and details you may have to test your PR.