Description
Bug Report
Describe the bug
Fluent-operator Helm Chart 3.3.0 is unable to process YAML configuration, when the only change to values file is:
configFileFormat: yaml
Seems to be affected by any Fluentbit YAML configuration that contain lists.
To Reproduce
Helm install fluentbit
- helm -n fluent-operator install fluent-operator fluent-operator
[2025/03/14 18:43:59] [error] [config] YAML error found in file "/fluent-bit/config/ fluent-bit.yaml", line 4, column 4: unexpected event 'sequence-start-event' (7) in state 'section-value' (5).
[2025/03/14 18:43:59] [error] yaml error
[2025/03/14 18:43:59] [error] [config] including file '/fluent-bit/config/fluent-bit.yaml' at /fluent-bit/etc/fluent-bit.yaml:2
[2025/03/14 18:43:59] [error] yaml error
[2025/03/14 18:43:59] [error] configuration file contains errors, aborting.
level=error time=2025-03-14T18:43:59Z msg="Failure during the run time of fluent-bit" error="failed to run fluent-bit: exit status 1"
Expected behavior
Expecting Fluent-operator and Fluentbit CR to operate with YAML configuration.
Screenshots
Your Environment
- Version used: 3.3.0
- Configuration: "configFileFormat: yaml"
- Environment name and version (e.g. Kubernetes? What version?): v1.30.9-eks-8cce635
Additional context
My team has a requirement to send logs using fluent-bit from one k8s cluster to an OpenTelemetry collector located in a monitoring k8s cluster. We need to use the opentelemetry_envelope and content_modifier processor to add attributes such as service.name to logs. The use of these processors can only be achieved with Fluentbit using YAML format.