Skip to content

feat(fluentbit): add retainMetadataInForwardMode to forward output pl…#1973

Open
joshuabaird wants to merge 8 commits into
fluent:masterfrom
joshuabaird:chore/fluentbit/retain-metadata-in-forward
Open

feat(fluentbit): add retainMetadataInForwardMode to forward output pl…#1973
joshuabaird wants to merge 8 commits into
fluent:masterfrom
joshuabaird:chore/fluentbit/retain-metadata-in-forward

Conversation

@joshuabaird
Copy link
Copy Markdown
Collaborator

@joshuabaird joshuabaird commented May 27, 2026

Adds retainMetadataInForwardMode to fluentbit forward output.

Fixes #1972.

@joshuabaird joshuabaird force-pushed the chore/fluentbit/retain-metadata-in-forward branch 2 times, most recently from 4500874 to a6c78e0 Compare May 27, 2026 13:24
joshuabaird and others added 4 commits May 27, 2026 09:27
…ugin

Adds the RetainMetadataInForwardMode field to the Fluent Bit forward
output plugin CRD type. Since Fluent Bit v5.0.5 changed the default of
retain_metadata_in_forward_mode to true, forwarding to Fluentd breaks
with "skip invalid event" errors. Setting this field to false restores
Fluentd compatibility. Fixes fluent#1972.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Adds fluentd.forward.retainMetadataInForwardMode to values.yaml (null
by default, so existing installs are unaffected) and renders it in the
fluentbit-output-forward ClusterOutput template when set.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Josh Baird <jbaird@galileo.io>
@joshuabaird joshuabaird force-pushed the chore/fluentbit/retain-metadata-in-forward branch from a6c78e0 to b62b0d3 Compare May 27, 2026 13:27
joshuabaird and others added 2 commits May 27, 2026 09:28
Signed-off-by: Josh Baird <jbaird@galileo.io>
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Josh Baird <jbaird@galileo.io>
Co-authored-by: Cursor <cursoragent@cursor.com>
@joshuabaird joshuabaird marked this pull request as ready for review May 27, 2026 13:38
Copilot AI review requested due to automatic review settings May 27, 2026 13:38
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds support for Fluent Bit forward output option retain_metadata_in_forward_mode to address Fluent Bit v5.0.5+ interoperability issues with Fluentd (Fixes #1972) by exposing it through the CRD API, Helm chart values, and generated manifests.

Changes:

  • Extend Fluent Bit Forward output plugin API with retainMetadataInForwardMode and render it into output params.
  • Regenerate CRDs/manifests to include the new field in Output/ClusterOutput schemas.
  • Document and wire the option through the Helm chart (values.yaml + template).

Reviewed changes

Copilot reviewed 12 out of 13 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
manifests/setup/setup.yaml Regenerated install manifest CRDs to include retainMetadataInForwardMode in forward output schema.
manifests/setup/fluent-operator-crd.yaml Regenerated aggregated CRD bundle with the new forward output field.
docs/plugins/fluentbit/output/forward.md Documents the new retainMetadataInForwardMode field for the forward output plugin.
config/crd/bases/fluentbit.fluent.io_outputs.yaml Regenerated base Output CRD schema to add the new boolean field.
config/crd/bases/fluentbit.fluent.io_clusteroutputs.yaml Regenerated base ClusterOutput CRD schema to add the new boolean field.
charts/fluent-operator/values.yaml Adds Helm value fluentd.forward.retainMetadataInForwardMode (nullable by default).
charts/fluent-operator/templates/fluentbit-output-forward.yaml Conditionally renders retainMetadataInForwardMode into the generated ClusterOutput.
charts/fluent-operator/crds/fluentbit.fluent.io_outputs.yaml Updates chart-packaged Output CRD with the new field.
charts/fluent-operator/crds/fluentbit.fluent.io_clusteroutputs.yaml Updates chart-packaged ClusterOutput CRD with the new field.
charts/fluent-operator-fluent-bit-crds/templates/fluentbit.fluent.io_outputs.yaml Updates fluent-bit CRDs subchart Output schema with the new field.
charts/fluent-operator-fluent-bit-crds/templates/fluentbit.fluent.io_clusteroutputs.yaml Updates fluent-bit CRDs subchart ClusterOutput schema with the new field.
apis/fluentbit/v1alpha2/plugins/output/zz_generated.deepcopy.go Regenerated deepcopy logic to include the new pointer field.
apis/fluentbit/v1alpha2/plugins/output/forward_types.go Adds RetainMetadataInForwardMode to the Forward output plugin and renders it into params.
Files not reviewed (1)
  • apis/fluentbit/v1alpha2/plugins/output/zz_generated.deepcopy.go: Language not supported

Comment thread apis/fluentbit/v1alpha2/plugins/output/forward_types.go
joshuabaird and others added 2 commits May 27, 2026 09:45
Copilot AI review requested due to automatic review settings May 27, 2026 13:45
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 13 out of 14 changed files in this pull request and generated no new comments.

Files not reviewed (1)
  • apis/fluentbit/v1alpha2/plugins/output/zz_generated.deepcopy.go: Language not supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support fluent-bit forward plugin's retain_metadata_in_forward_mode

2 participants