-
Notifications
You must be signed in to change notification settings - Fork 171
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
cleanup(sinsp)!: add set_static_container method #2016
Conversation
This change splits configuration of the static container data away from the sinsp constructor and into a separate set_static_container method. The motivation behind this change is two fold: - Configuration of other container engines is handled by a call to set_container_engine_mask() before starting the inspector, the new method is closer to this implementation. - Enabling metrics collection should not require adopters to pass in 4 unrelated arguments to the sinsp constructor. These changes will require some modifications into the Falco main repo, as far as I can tell they should be relatively straight forward. Signed-off-by: Mauro Ezequiel Moltrasio <[email protected]>
Perf diff from master - unit tests
Perf diff from master - scap file
Heap diff from master - unit tests
Heap diff from master - scap file
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2016 +/- ##
==========================================
- Coverage 74.12% 74.12% -0.01%
==========================================
Files 253 253
Lines 30805 30801 -4
Branches 5415 5403 -12
==========================================
- Hits 22834 22830 -4
+ Misses 7967 7947 -20
- Partials 4 24 +20
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Agree with the proposed changes! Thanks for the cleanup :)
/approve
LGTM label has been added. Git tree hash: eaea7250dd6067f4fd314de72751cea3e50c1c7a
|
/milestone 0.18.0 |
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: FedeDP, incertum, Molter73 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind cleanup
Any specific area of the project related to this PR?
/area libsinsp
Does this PR require a change in the driver versions?
What this PR does / why we need it:
This change splits configuration of the static container data away from the sinsp constructor and into a separate set_static_container method.
The motivation behind this change is two fold:
These changes will require some modifications into the Falco main repo, as far as I can tell they should be relatively straight forward.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: