feat(fluentbit): adds support for workers to syslog output - #1874
Conversation
|
@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! |
|
@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 |
|
@joshuabaird could you please review if the test is ok? |
02696c4 to
be41f22
Compare
|
@Cajga the CI is failing |
|
please resolve the merge conflicts in this pull request |
|
@copilot resolve the merge conflicts in this pull request |
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>
d472d06 to
a6cdc52
Compare
There was a problem hiding this comment.
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
workersto 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. |
- 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>
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?
Additional documentation, usage docs, etc.: