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

update(falco): add container-gvisor and kubernetes-gvisor print options #2288

Conversation

LucaGuerra
Copy link
Contributor

Signed-off-by: Luca Guerra luca@guerra.sh

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind feature

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area engine

What this PR does / why we need it:

When running with gVisor on a host with containers, you probably want to print details with container-gvisor, when using kubernetes kubernetes-gvisor, as they're equivalent to container and kubernetes but add information useful for gVisor (currently vtid and vpid, but could be more). These can easily be used by the helm chart as well.

Also, remove the previous if that was trying to set this automatically. It is cleaner to specifiy the print format explicitly like we currently do with k8s.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

update(falco): add container-gvisor and kubernetes-gvisor print options

@jasondellaluce
Copy link
Contributor

/milestone 0.34

@poiana
Copy link
Contributor

poiana commented Nov 11, 2022

@jasondellaluce: The provided milestone is not valid for this repository. Milestones in this repository: [0.34.0, 1.0.0]

Use /milestone clear to clear the milestone.

In response to this:

/milestone 0.34

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@jasondellaluce
Copy link
Contributor

/milestone 0.34.0

@poiana poiana added this to the 0.34.0 milestone Nov 11, 2022
FedeDP
FedeDP previously approved these changes Nov 17, 2022
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 Nov 17, 2022

LGTM label has been added.

Git tree hash: 35c5c0a8aabe8a32a9c66350ae547a2418d7b3d3

else if(m_options.print_additional == "k" || m_options.print_additional == "kubernetes")
{
output_format = "k8s.ns=%k8s.ns.name k8s.pod=%k8s.pod.name container=%container.id";
replace_container_info = true;
}
else if(m_options.print_additional == "kg" ||m_options.print_additional == "kubernetes-gvisor")
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
else if(m_options.print_additional == "kg" ||m_options.print_additional == "kubernetes-gvisor")
else if(m_options.print_additional == "kg" || m_options.print_additional == "kubernetes-gvisor")

@LucaGuerra LucaGuerra force-pushed the update/add-container-gvisor-kubernetes-gvisor branch from cfe7880 to 30a3024 Compare November 22, 2022 15:02
@poiana poiana removed the lgtm label Nov 22, 2022
@poiana poiana requested a review from FedeDP November 22, 2022 15:02
Signed-off-by: Luca Guerra <luca@guerra.sh>
@LucaGuerra LucaGuerra force-pushed the update/add-container-gvisor-kubernetes-gvisor branch from 30a3024 to 5949cd9 Compare November 22, 2022 15:58
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.

/approve

@poiana
Copy link
Contributor

poiana commented Nov 23, 2022

LGTM label has been added.

Git tree hash: 8e1a1986b2d157f150b22a6ee2a46bd633f72a1d

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 Nov 23, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: FedeDP, leogr, LucaGuerra

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit f08a5b4 into falcosecurity:master Nov 23, 2022
@LucaGuerra LucaGuerra deleted the update/add-container-gvisor-kubernetes-gvisor branch November 23, 2022 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants