packaging: switch to YAML config files by default#9837
packaging: switch to YAML config files by default#9837patrick-stephens wants to merge 1 commit intomasterfrom
Conversation
d44a034 to
1452694
Compare
1452694 to
a5dc8fc
Compare
Signed-off-by: Patrick Stephens <pat@chronosphere.io>
a5dc8fc to
156fc0a
Compare
|
cc @stevehipwell on the helm side - the current chart uses a legacy config by default so should not be impacted by this change but maybe we should change the defaults there too? |
|
@patrick-stephens is the YAML support now idiomatic? I saw |
There's no change to syntax here, this is primarily around the default config file we're using. |
|
So in the context of Kubernetes I think the current "YAML" format is problematic given the fact that it's not idiomatic YAML but is called YAML and looks like YAML. That said am I correct in understanding that some capabilities are only available via the YAML config? |
Sorry @stevehipwell missed this but yes, processors are the main one that is only available via YAML config: https://docs.fluentbit.io/manual/pipeline/processors I think the main thing on the chart side is making it easy to switch to format. At the moment I think this is a minimal YAML config for the chart but it leaves all the default config in place: args:
- --workdir=/fluent-bit/etc
- --config=/fluent-bit/etc/conf/fluent-bit.yaml
config:
extraFiles:
fluent-bit.yaml: |
pipeline:
inputs:
- name: tail
tag: kube.*
path: /var/log/containers/*.log
multiline.parser: docker, cri
outputs:
- name: stdout
match: '*'The current config forces legacy config usage as it uses The chart is protected against the default format changing as the |
|
@patrick-stephens can you take another swing at the errors here? Nudging for the docs PR fluent/fluent-bit-docs#1551 |
Resolves #9714 by switching to using YAML configuration by default for all packages and containers.
For containers we should prepare a PR for the helm chart as well but it will not break the helm chart as that explicitly uses a
.conffile for now.We should ensure this is properly notified during the release notes and beforehand for folks to do any required updates to their rollouts.
Enter
[N/A]in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
ok-package-testlabel to test for all targets (requires maintainer to do).Documentation
installation: switch to YAML config files by default fluent-bit-docs#1551
Backporting
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.