Skip to content

Conversation

@weizhoublue
Copy link
Member

I am robot, upgrade: project falco chart upgrade from 2.0.17 to 7.0.2

@gemini-code-assist
Copy link

Summary of Changes

Hello @weizhoublue, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request upgrades the falco chart to version 7.0.2, incorporating significant enhancements such as updated dependencies, the introduction of the falco-talon subchart, improved documentation, and integration with k8s-metacollector. The changes aim to provide a more robust and feature-rich Falco deployment experience.

Highlights

  • Chart Version Upgrade: The falco chart has been upgraded from version 2.0.17 to 7.0.2, bringing in numerous updates and features.
  • Falco App Version Update: The appVersion in the Chart.yaml has been updated from 0.32.2 to 0.42.1, reflecting the new Falco release.
  • Dependency Updates: Dependencies, including falcosidekick and k8s-metacollector, have been updated to their latest compatible versions.
  • Falco Talon Subchart: Introduced the falco-talon subchart for response actions, enhancing Falco's capabilities.
  • k8s-metacollector Integration: Added k8s-metacollector as a dependency when collectors.kubernetes is enabled, improving Kubernetes metadata collection.
  • Falcoctl Tooling: Removed the Makefile and updated the README to reflect the use of falcoctl for managing rules and plugins.
  • README Overhaul: The README.gotmpl file has been significantly updated to provide comprehensive documentation on Falco deployment, event sources, drivers, plugins, and configuration.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This PR is a major upgrade of the Falco chart from version 2.0.17 to 7.0.2, introducing significant changes, new sub-charts like falco-talon and k8s-metacollector, and updating dependencies. The changes align with modernizing Falco's deployment, such as using falcoctl for artifact management and removing deprecated features. My review focuses on identifying potential issues arising from this large-scale automated upgrade, including configuration bugs, documentation clarity, and template logic. I've found a few critical configuration issues, typos in documentation, and some minor template improvements.

Comment on lines +57 to +59
create_index_template: {{ .Values.config.notifiers.loki.createIndexTemplate }}
number_of_shards: {{ .Values.config.notifiers.loki.numberOfShards }}
number_of_replicas: {{ .Values.config.notifiers.loki.numberOfReplicas }}

Choose a reason for hiding this comment

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

high

There seems to be a copy-paste error. The configuration for elasticsearch is using values from loki (.Values.config.notifiers.loki.*). It should be using values from .Values.config.notifiers.elasticsearch.*.

        create_index_template: {{ .Values.config.notifiers.elasticsearch.createIndexTemplate }}
        number_of_shards: {{ .Values.config.notifiers.elasticsearch.numberOfShards }}
        number_of_replicas: {{ .Values.config.notifiers.elasticsearch.numberOfReplicas }}

# -- region (if not specified, default region from provider credential chain will be used)
region: ""
# -- access key (if not specified, default access_key from provider credential chain will be used)
accesKey: ""

Choose a reason for hiding this comment

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

high

There is a typo in the configuration key accesKey. It should be accessKey. This will cause the value to be ignored by the template, which expects accessKey.

    accessKey: ""

The new chart deploys new *k8s* resources and new configuration variables have been added to the `values.yaml` file. People upgrading the chart from `v2.x.y` have to port their configuration variables to the new `values.yaml` file used by the `v3.0.0` chart.

If you still want to use the old values, because you do not want to take advantage of the new and shiny **falcoctl** tool then just run:
```bash=

Choose a reason for hiding this comment

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

medium

The code block specifier bash= is not standard Markdown and may not render correctly on all platforms (like GitHub). It's better to use just bash. This applies to other code blocks in this file as well (lines 104, 114, 126, 136, 216, 224).

Suggested change
```bash=
```bash


## v4.21.1

* removed falco-expoter (now deprecated) references from the readme

Choose a reason for hiding this comment

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

medium

There is a typo in falco-expoter. It should be falco-exporter.

Suggested change
* removed falco-expoter (now deprecated) references from the readme
* removed falco-exporter (now deprecated) references from the readme


## v4.5.2

* reording scc configuration, making it more robust to plain yaml comparison

Choose a reason for hiding this comment

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

medium

There is a typo in reording. It should be reordering.

Suggested change
* reording scc configuration, making it more robust to plain yaml comparison
* reordering scc configuration, making it more robust to plain yaml comparison


**Legacy eBPF probe**

To run Falco with the [eBPF probe](http://falco.org/docs/concepts/event-sources/kernel/#legacy-ebpf-probe) you just need to set `driver.kind=ebpf` as shown in the following snippet:

Choose a reason for hiding this comment

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

medium

The description for the "Legacy eBPF probe" section is confusing. The text refers to "eBPF probe" but it should be "legacy eBPF probe". Also, the link uses http instead of https.

To run Falco with the [legacy eBPF probe](https://falco.org/docs/concepts/event-sources/kernel/#legacy-ebpf-probe) you just need to set `driver.kind=ebpf` as shown in the following snippet:

* k8s.pod.namespace.name;

The [k8smeta](https://github.com/falcosecurity/plugins/tree/master/plugins/k8smeta) plugin exports a whole new
[field class]https://github.com/falcosecurity/plugins/tree/master/plugins/k8smeta#supported-fields. Note that the new

Choose a reason for hiding this comment

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

medium

The markdown link for "field class" is broken. It's missing parentheses to properly format it as a link.

[field class](https://github.com/falcosecurity/plugins/tree/master/plugins/k8smeta#supported-fields). Note that the new

* configure the plugins to be loaded, in this case, the `k8saudit` and `json`;
* and finally we add our plugins in the `load_plugins` to be loaded by Falco.

The configuration can be found in the [values-k8saudit.yaml(./values-k8saudit.yaml] file ready to be used:

Choose a reason for hiding this comment

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

medium

The markdown link for values-k8saudit.yaml is broken. It's missing the correct parenthesis.

The configuration can be found in the [values-k8saudit.yaml](./values-k8saudit.yaml) file ready to be used:


```
helm delete falco-talon -n falco
````

Choose a reason for hiding this comment

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

medium

The code block for uninstalling Falco Talon uses four backticks instead of three, which will cause rendering issues.

Suggested change
````

name: certs-volume
readOnly: true
{{- end }}
{{- if or .Values.extraVolumeMounts }}

Choose a reason for hiding this comment

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

medium

The or in this if condition is redundant. if .Values.extraVolumeMounts would be sufficient and cleaner.

        {{- if .Values.extraVolumeMounts }}

@github-actions github-actions bot force-pushed the upgrade/falco/7.0.2 branch 3 times, most recently from 150d5a8 to 92ef169 Compare November 28, 2025 20:06
@github-actions github-actions bot force-pushed the upgrade/falco/7.0.2 branch from 92ef169 to e3f7f50 Compare November 29, 2025 20:06
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.

2 participants