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(driver/config)!: use the same logic to configure engine kind for different enviroments #630

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

alacuku
Copy link
Member

@alacuku alacuku commented Sep 2, 2024

What type of PR is this?

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

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

/kind flaky-test

Any specific area of the project related to this PR?

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

/area library

/area cli

/area tests

/area examples

What this PR does / why we need it:
When running in kubernetes, falcoctl does not update the falco config map but creates a new
specialized config file with the selected engine kind. The command expects the name of the Falco
configmap from which to read the Falco configuration. This is needed to avoid conflicts when multiple
Falco's are deployed in the same cluster and namespace. Just to let you know, these are breaking changes.

The engine kind on each node could differ based on the kernel capabilities of the node. When the engine kind is set to auto falcoctl will choose the best engine kind that fits the node where it is running.

Which issue(s) this PR fixes:
falcosecurity/charts#695
falcosecurity/driverkit#351

Fixes #

Special notes for your reviewer:

…or different enviroments

When running in kubernetes, falcoctl does not update the falco config map but creates a new
specialized config file with the selected engine kind. The command expects the name of the Falco
configmap from which to read the Falco configuration. This is needed to avoid conflicts when multiple
Falco's are deployed in the same cluster and namespace. Keep in mind that this are breaking changes.

Signed-off-by: Aldo Lacuku <[email protected]>
@alacuku alacuku force-pushed the kcl/fix-racecondition-configmap branch from d97c5b1 to 774fef3 Compare September 3, 2024 07:54
@FedeDP FedeDP added this to the v0.10.0 milestone Sep 3, 2024
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 Sep 4, 2024

[APPROVALNOTIFIER] This PR is APPROVED

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

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
Copy link
Contributor

poiana commented Sep 4, 2024

LGTM label has been added.

Git tree hash: 6d5008b8c709e324590d091c5307a3f70c91acec

@alacuku alacuku changed the title WIP: update(driver/config)!: use the same logic to configure engine kind for different enviroments update(driver/config)!: use the same logic to configure engine kind for different enviroments Sep 4, 2024
@poiana poiana merged commit db496e5 into falcosecurity:main Sep 4, 2024
17 checks passed
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.

3 participants