Skip to content

feat(fluentbit): adds support for workers to syslog output - #1874

Merged
joshuabaird merged 6 commits into
fluent:masterfrom
mob-galtryn:adds-support-for-workers-syslog
May 6, 2026
Merged

feat(fluentbit): adds support for workers to syslog output#1874
joshuabaird merged 6 commits into
fluent:masterfrom
mob-galtryn:adds-support-for-workers-syslog

Conversation

@mob-galtryn

Copy link
Copy Markdown
Contributor

Signed-off-by: Nick Galtry nick.galtry@mobilise.cloud

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #1870

Does this PR introduced a user-facing change?

Adds support for setting the number of workers for the syslog output.

Additional documentation, usage docs, etc.:


Comment thread apis/fluentbit/v1alpha2/plugins/output/syslog_types.go Outdated
@joshuabaird

Copy link
Copy Markdown
Collaborator

@mob-galtryn Would you mind taking a look at tests for other output plugins (eg, datadog, gelf, s3) and implement tests for the syslog output plugin in a similar fashion? Thanks!

@mob-galtryn

Copy link
Copy Markdown
Contributor Author

@joshuabaird I have found tests here apis/fluentbit/v1alpha2/clusteroutput_types_test.go that includes tests for the syslog output, are these the tests you are referring to?

@joshuabaird joshuabaird changed the title adds support for workers to syslog output fluentbit: adds support for workers to syslog output Feb 18, 2026
@joshuabaird joshuabaird changed the title fluentbit: adds support for workers to syslog output feat(fluentbit): adds support for workers to syslog output Feb 18, 2026
@joshuabaird joshuabaird added fluent-bit enhancement New feature or request labels Feb 18, 2026
@joshuabaird

Copy link
Copy Markdown
Collaborator

@joshuabaird I have found tests here apis/fluentbit/v1alpha2/clusteroutput_types_test.go that includes tests for the syslog output, are these the tests you are referring to?

Tests would probably go in a new syslog_types_test.go file.

@Cajga

Cajga commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

@joshuabaird could you please review if the test is ok?

@marcofranssen
marcofranssen force-pushed the adds-support-for-workers-syslog branch from 02696c4 to be41f22 Compare April 2, 2026 07:08
@marcofranssen

Copy link
Copy Markdown
Collaborator

@Cajga the CI is failing

@wenchajun

Copy link
Copy Markdown
Member

please resolve the merge conflicts in this pull request

@marcofranssen

Copy link
Copy Markdown
Collaborator

@copilot resolve the merge conflicts in this pull request

mob-galtryn and others added 4 commits May 6, 2026 09:28
Signed-off-by: Nick Galtry <nick.galtry@mobilise.cloud>
Signed-off-by: Nick Galtry <nick.galtry@mobilise.cloud>
Signed-off-by: Nick Galtry <nick.galtry@mobilise.cloud>
- Fix `workers` -> `Workers` (exported field) in syslog_types_test.go
- Regenerate CRD manifests via make manifests; previous commits incorrectly
  targeted charts/fluent-bit-crds/ (non-existent), now correctly written to
  charts/fluent-operator-fluent-bit-crds/templates/

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Josh Baird <jbaird@galileo.io>
@joshuabaird
joshuabaird force-pushed the adds-support-for-workers-syslog branch from d472d06 to a6cdc52 Compare May 6, 2026 13:33
Copilot AI review requested due to automatic review settings May 6, 2026 13:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for configuring Fluent Bit syslog output plugin workers via Fluent Operator’s CRDs, ensuring the setting is rendered into the generated Fluent Bit configuration and documented for users.

Changes:

  • Add workers to the Syslog output plugin API type and render it into output params.
  • Regenerate/update CRD schemas and installation manifests to expose spec.syslog.workers.
  • Update syslog output plugin documentation and add a unit test for params rendering.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
manifests/setup/setup.yaml Exposes workers in the rendered installation manifest CRDs for syslog output.
manifests/setup/fluent-operator-crd.yaml Mirrors the workers schema change in the operator CRD bundle manifest.
docs/plugins/fluentbit/output/syslog.md Documents the new workers field for syslog output.
config/crd/bases/fluentbit.fluent.io_outputs.yaml Adds workers to the syslog output schema in the base CRD.
config/crd/bases/fluentbit.fluent.io_clusteroutputs.yaml Adds workers to the syslog clusteroutput schema in the base CRD.
charts/fluent-operator/crds/fluentbit.fluent.io_outputs.yaml Updates Helm CRDs to include the syslog workers field.
charts/fluent-operator/crds/fluentbit.fluent.io_clusteroutputs.yaml Updates Helm CRDs to include the syslog workers field for clusteroutputs.
charts/fluent-operator-fluent-bit-crds/templates/fluentbit.fluent.io_outputs.yaml Updates Fluent Bit CRD chart templates with the syslog workers field.
charts/fluent-operator-fluent-bit-crds/templates/fluentbit.fluent.io_clusteroutputs.yaml Updates Fluent Bit clusteroutput CRD chart templates with the syslog workers field.
apis/fluentbit/v1alpha2/plugins/output/syslog_types.go Adds Workers to the Syslog type and inserts workers into rendered params.
apis/fluentbit/v1alpha2/plugins/output/syslog_types_test.go Adds a unit test validating workers is included in rendered syslog params.

Comment thread apis/fluentbit/v1alpha2/plugins/output/syslog_types.go
Comment thread apis/fluentbit/v1alpha2/plugins/output/syslog_types_test.go Outdated
- Run make generate to add Workers *int32 deepcopy to zz_generated.deepcopy.go
- Remove conversational inline comments from syslog_types_test.go

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Josh Baird <jbaird@galileo.io>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 12 out of 12 changed files in this pull request and generated no new comments.

@joshuabaird
joshuabaird merged commit 4f0160c into fluent:master May 6, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request fluent-bit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add option to configure workers for syslog output

6 participants