Repository navigation
fix: enable dual-stack for Fluent Bit metrics services - #2273
Conversation
Signed-off-by: Vyncint Ng <[email protected]>
There was a problem hiding this comment.
Pull request overview
This PR updates the Fluent Bit resource generation so that the operator renders the Fluent Bit metrics and buffer metrics Service objects as dual-stack when enabledIPv6: true is set on the FluentbitSpec, while leaving the existing single-stack behavior unchanged when IPv6 is disabled. This aligns Fluent Bit’s metrics Services with the expected IPv6 behavior described in issue #2238.
Changes:
- Apply
PreferDualStack+[IPv4, IPv6]ipFamiliesto Fluent Bit metrics and buffer-metrics Services whenEnabledIPv6is true. - Preserve existing behavior (no explicit IP-family fields set) when
EnabledIPv6is false. - Add unit tests validating both single-stack and dual-stack rendering for both Services.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pkg/resources/fluentbit/service.go | Conditionally applies IPv6/dual-stack ServiceSpec options for Fluent Bit metrics and buffer-metrics Services. |
| pkg/resources/fluentbit/service_test.go | Adds focused unit coverage asserting the Service IP family fields in both IPv6-disabled and IPv6-enabled modes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
📝 Promptless drafted a documentation update for this change. We've prepared a "What's new" entry documenting that setting Because this change hasn't shipped in a release yet, the note is currently filed under an "Unreleased" heading; the version heading should be updated to the actual release once this PR merges and is cut into a release. Review the suggestion here: https://app.gopromptless.ai/suggestions/fac15125-2213-4ded-87c3-444ad974009b |
|
Thanks @vyncint! |
Summary
enabledIPv6is enabledenabledIPv6is disabledTesting
make checkmake check-diffFixes #2238