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

new(falco): adding imagePullSecrets at the service account level #824

Merged

Conversation

megalucio
Copy link
Contributor

@megalucio megalucio commented Jan 30, 2025

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

If this PR will release a new chart version please make sure to also uncomment the following line:

kind chart-release

Any specific area of the project related to this PR?

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

/area falco-chart

/area falco-exporter-chart

/area falcosidekick-chart

/area falco-talon-chart

/area event-generator-chart

/area k8s-metacollector-chart

What this PR does / why we need it:

For most use cases, it is recommended to specify imagePullSecrets at the ServiceAccount level if all pods using that ServiceAccount need access to the same image pull secrets. This approach simplifies management and ensures consistency across your deployments.

This pull request includes updates to the Falco Helm Chart to add support for image pull secrets at the service account level. The most important changes include updating the chart version, adding a new configuration option for image pull secrets, and documenting this new feature.

Feature Addition:

Documentation Updates:

Version Bump:

Which issue(s) this PR fixes:

Special notes for your reviewer:

I've already fixed the corrisponding labels in GitHub

Checklist

  • Chart Version bumped
  • Variables are documented in the README.md
  • CHANGELOG.md updated

@poiana poiana added kind/bug Something isn't working dco-signoff: yes kind/feature New feature or request area/falco-chart labels Jan 30, 2025
@poiana poiana requested review from alacuku and bencer January 30, 2025 13:38
@poiana poiana added the size/S label Jan 30, 2025
@Issif
Copy link
Member

Issif commented Feb 10, 2025

Can you run make docs-falco-talon to update the readme?

@leogr leogr force-pushed the charts/falco/sa-imagepullsecrets branch from 7221429 to bf0d3c0 Compare February 13, 2025 11:33
@leogr
Copy link
Member

leogr commented Feb 13, 2025

I've rebased this and bumped the version number again.
@Issif @alacuku PTAL 🙏
/hold

@alacuku
Copy link
Member

alacuku commented Feb 13, 2025

Hey @megalucio!

Thanks again for your contribution! As I mentioned in the other PR (#811), I believe this addition might be redundant. The chart already supports imagePullSecrets at the pod level, which should cover all use cases for the Falco application. Adding it at the serviceAccount level would mean duplicating the same configuration in two places.

That said, if you have a specific use case where this feature solves a problem that the current chart doesn’t address, I’d love to hear more! Always happy to improve things where needed. 🚀

Looking forward to your thoughts!

@megalucio
Copy link
Contributor Author

megalucio commented Feb 21, 2025

Hey @megalucio!

Thanks again for your contribution! As I mentioned in the other PR (#811), I believe this addition might be redundant. The chart already supports imagePullSecrets at the pod level, which should cover all use cases for the Falco application. Adding it at the serviceAccount level would mean duplicating the same configuration in two places.

That said, if you have a specific use case where this feature solves a problem that the current chart doesn’t address, I’d love to hear more! Always happy to improve things where needed. 🚀

Looking forward to your thoughts!

Hello, thanks for looking into this but in my opinion this is not redundant but just adds the possibility of configure it at both he the pod and the service account level, the same way Kubernetes does and it is not considered redundant. I would argue the later is actually better practice since this approach simplifies management and ensures consistency across deployments.

In our case, for our cluster we set this up at the service account level. In order to be consistent with the rest of the configuration of the cluster it makes more sense for us to set it up in the same way and I do not see the disadvantage of adding this possibility to Falco as well.

@megalucio megalucio force-pushed the charts/falco/sa-imagepullsecrets branch from bf0d3c0 to f2d682d Compare February 21, 2025 15:53
@megalucio megalucio force-pushed the charts/falco/sa-imagepullsecrets branch from 0afd164 to f3884b4 Compare February 21, 2025 16:13
Copy link
Member

@alacuku alacuku left a comment

Choose a reason for hiding this comment

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

Please have a look at the chart's version.

@leogr
Copy link
Member

leogr commented Mar 14, 2025

/hold cancel

I fixed the chart version, and I'm going to merge this shortly.

@poiana
Copy link
Contributor

poiana commented Mar 14, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: leogr, megalucio

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 added the lgtm label Mar 14, 2025
@poiana
Copy link
Contributor

poiana commented Mar 14, 2025

LGTM label has been added.

Git tree hash: 834173838b66abe33bc3d1e1e59a10f26ab192c2

@poiana poiana merged commit 5e50321 into falcosecurity:master Mar 14, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants