Skip to content
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

refactor(userspace/falco): reduce app actions dependency on app state and inspector #2097

Merged
merged 6 commits into from
Aug 25, 2022

Conversation

jasondellaluce
Copy link
Contributor

What type of PR is this?

/kind cleanup

Any specific area of the project related to this PR?

/area engine

What this PR does / why we need it:

This PR removes the need of accessing the app state inspector for some actions. They now create an inspector on-the-fly if needed.

Accordingly, the action order has been updated depending on their app state dependencies. Now, actions that do not need a given loading/initialization step are moved before it. For instance, this fixed the --list-syscall-events command which does not really require a configuration file loaded, but until now failed if no -c was specified.

Which issue(s) this PR fixes:

Special notes for your reviewer:

This supported the work of #2074, for which reducing the internal dependencies on the single app state inspector is crucial in order to start managing more than one.

Does this PR introduce a user-facing change?:

refactor(userspace/falco): reduce app actions dependency on app state and inspector

@jasondellaluce
Copy link
Contributor Author

/milestone 0.33.0

@poiana poiana added this to the 0.33.0 milestone Jun 28, 2022
@jasondellaluce jasondellaluce force-pushed the refactor/reduce-action-inspector-deps branch from b58addb to 4779ef7 Compare July 18, 2022 15:08
Copy link
Member

@leogr leogr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@poiana
Copy link
Contributor

poiana commented Aug 25, 2022

LGTM label has been added.

Git tree hash: c70c88d2161936935f381d5d936c86278be3c090

Copy link
Contributor

@FedeDP FedeDP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@poiana
Copy link
Contributor

poiana commented Aug 25, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: FedeDP, jasondellaluce

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:
  • OWNERS [FedeDP,jasondellaluce]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit 7d3dacc into master Aug 25, 2022
@poiana poiana deleted the refactor/reduce-action-inspector-deps branch August 25, 2022 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants