Skip to content

Conversation

@ErmolenkoMaxim
Copy link
Contributor

@ErmolenkoMaxim ErmolenkoMaxim commented Mar 24, 2025

/kind feature

What this PR does / why we need it:
Adds support for configuring additional Hubble file export parameters in the Cilium ConfigMap via Kubespray inventory:

  • hubble-export-file-max-backups
  • hubble-export-file-max-size-mb

These variables are useful for controlling the size and rotation of flow logs when using file-based export in Hubble. They were previously not configurable from Kubespray and had to be set manually.

Which issue(s) this PR fixes:
N/A

Special notes for your reviewer:

  • These values are only added to the Cilium ConfigMap if the inventory variables are explicitly defined.
  • This avoids overriding Cilium’s default behavior unintentionally.

Does this PR introduce a user-facing change?:

Users can now configure `hubble-export-file-max-backups` and `hubble-export-file-max-size-mb` through the Kubespray inventory.

@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Mar 24, 2025
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 24, 2025
@k8s-ci-robot
Copy link
Contributor

Hi @ErmolenkoMaxim. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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-sigs/prow repository.

@ant31
Copy link
Contributor

ant31 commented Mar 25, 2025

/ok-to-test
/label ci-short

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. ci-short Run a quick CI pipeline and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 25, 2025
@ErmolenkoMaxim
Copy link
Contributor Author

@ant31 Hello, both files modified, please check.

@ant31
Copy link
Contributor

ant31 commented Mar 29, 2025

it's expected to be a string ?

you must rebase master to for the ci the pass
/lgtm

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. labels Mar 29, 2025
@ErmolenkoMaxim ErmolenkoMaxim force-pushed the feature/hubble-export-vars branch from 49d22bf to 085f714 Compare April 2, 2025 06:07
@ErmolenkoMaxim
Copy link
Contributor Author

rebased

@ErmolenkoMaxim
Copy link
Contributor Author

@mzaian
@cyclinder
guys please check

@ant31
Copy link
Contributor

ant31 commented Apr 9, 2025

/lgtm

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Apr 9, 2025
@VannTen
Copy link
Contributor

VannTen commented Apr 24, 2025

You should have the actual default values in the defaults/ folder.

This is turn allow to eschew the defined tests and simply use the variable which is guaranteed to be there.

@ErmolenkoMaxim
Copy link
Contributor Author

You should have the actual default values in the defaults/ folder.

This is turn allow to eschew the defined tests and simply use the variable which is guaranteed to be there.

roles/kubespray-defaults/tasks/main.yaml <--- here? @VannTen

@ErmolenkoMaxim ErmolenkoMaxim force-pushed the feature/hubble-export-vars branch from 1091a11 to 73df2da Compare April 25, 2025 07:12
@k8s-ci-robot k8s-ci-robot added do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. do-not-merge/contains-merge-commits and removed do-not-merge/contains-merge-commits size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 25, 2025
@ErmolenkoMaxim ErmolenkoMaxim force-pushed the feature/hubble-export-vars branch from a606e0b to 1909c6a Compare April 25, 2025 07:40
@ErmolenkoMaxim ErmolenkoMaxim force-pushed the feature/hubble-export-vars branch from 1909c6a to bbe8842 Compare April 25, 2025 08:25
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. label Apr 25, 2025
@ErmolenkoMaxim ErmolenkoMaxim requested review from VannTen and ant31 April 25, 2025 08:49
@VannTen
Copy link
Contributor

VannTen commented Apr 25, 2025 via email

- Adds support for `cilium_hubble_export_file_max_backups` and `cilium_hubble_export_file_max_size_mb`
- Applies values only if `cilium_hubble_export_file_path` is defined
- Default values are set in role defaults
- Cleans up template logic by removing unnecessary conditionals
@ErmolenkoMaxim ErmolenkoMaxim force-pushed the feature/hubble-export-vars branch from bbe8842 to 6f2c5e3 Compare April 25, 2025 09:22
@ErmolenkoMaxim
Copy link
Contributor Author

@VannTen please check.
Error: You do not have permission to create labels on this repository.: {"resource":"Repository","field":"label","code":"unauthorized"} - https://docs.github.com/v3/issues/labels/

@ErmolenkoMaxim ErmolenkoMaxim force-pushed the feature/hubble-export-vars branch from 92d0a8b to 2fff4e4 Compare May 6, 2025 08:41
@VannTen
Copy link
Contributor

VannTen commented May 17, 2025 via email

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 17, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ErmolenkoMaxim, VannTen

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 17, 2025
@k8s-ci-robot k8s-ci-robot merged commit 46a0dc9 into kubernetes-sigs:master May 17, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. ci-short Run a quick CI pipeline cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants