Skip to content

hubble: use functional options pattern for SkipUnknownCGroupIDs #39355

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

Merged

Conversation

tklauser
Copy link
Member

@tklauser tklauser commented May 6, 2025

Like other for options in the Hubble subsystem, use the Go function options pattern to enable/disable skipping of events with unknown CGroup IDs (SkipUnknownCGroupIDs) instead of wiring through a bool.

@tklauser tklauser requested a review from a team as a code owner May 6, 2025 08:16
@tklauser tklauser added release-note/misc This PR makes changes that have no direct user impact. sig/hubble labels May 6, 2025
@tklauser tklauser requested a review from kaworu May 6, 2025 08:16
@tklauser
Copy link
Member Author

tklauser commented May 6, 2025

/test

Like other for options in the Hubble subsystem, use the Go function
options pattern to enable/disable skipping of events with unknown CGroup
IDs (SkipUnknownCGroupIDs) instead of wiring through a bool.

Signed-off-by: Tobias Klauser <tobias@cilium.io>
@tklauser tklauser force-pushed the pr/tklauser/hubble-skip-unknown-cgroup-ids-use-option-pattern branch from 4ac426e to 7ac565e Compare May 6, 2025 08:39
@tklauser
Copy link
Member Author

tklauser commented May 6, 2025

/test

@tklauser tklauser enabled auto-merge May 6, 2025 11:08
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label May 20, 2025
@tklauser tklauser added this pull request to the merge queue May 20, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 20, 2025
@tklauser tklauser added this pull request to the merge queue May 20, 2025
tklauser added a commit that referenced this pull request May 20, 2025
The Hubble parser options are already logged as part of the Hubble cell
options. There is no point in logging the values again in each
options.With* function.

Ref. #39355 (comment)

Suggested-by: Alexandre Perrin <alex@isovalent.com>
Signed-off-by: Tobias Klauser <tobias@cilium.io>
Merged via the queue into main with commit 3b01235 May 20, 2025
286 of 287 checks passed
@tklauser tklauser deleted the pr/tklauser/hubble-skip-unknown-cgroup-ids-use-option-pattern branch May 20, 2025 13:54
tklauser added a commit that referenced this pull request May 20, 2025
The Hubble parser options are already logged as part of the Hubble cell
options. There is no point in logging the values again in each
options.With* function.

Ref. #39355 (comment)

Suggested-by: Alexandre Perrin <alex@isovalent.com>
Signed-off-by: Tobias Klauser <tobias@cilium.io>
tklauser added a commit that referenced this pull request May 20, 2025
The Hubble parser options are already logged as part of the Hubble cell
options. There is no point in logging the values again in each
options.With* function.

Ref. #39355 (comment)

Suggested-by: Alexandre Perrin <alex@isovalent.com>
Signed-off-by: Tobias Klauser <tobias@cilium.io>
github-merge-queue bot pushed a commit that referenced this pull request May 21, 2025
The Hubble parser options are already logged as part of the Hubble cell
options. There is no point in logging the values again in each
options.With* function.

Ref. #39355 (comment)

Suggested-by: Alexandre Perrin <alex@isovalent.com>
Signed-off-by: Tobias Klauser <tobias@cilium.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants