Skip to content

Commit

Permalink
Fully qualify default parsers.conf
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Thömmes <[email protected]>
  • Loading branch information
markusthoemmes committed Jan 31, 2024
1 parent 051ca71 commit d0b52b9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion apis/fluentbit/v1alpha2/clusterfluentbitconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,15 @@ func (s *Service) Params() *params.KVs {
m.Insert("Log_Level", s.LogLevel)
}
if s.ParsersFile != "" {
m.Insert("Parsers_File", s.ParsersFile)
if s.ParsersFile == "parsers.conf" {
// For backwards compatibility, if the "usual" parsers.conf is
// configured, actually write the fully-qualified path in order
// to not break hot-reload.
// See https://github.com/fluent/fluent-bit/issues/8275.
m.Insert("Parsers_File", "/fluent-bit/etc/parsers.conf")
} else {
m.Insert("Parsers_File", s.ParsersFile)
}
}
if s.Storage != nil {
if s.Storage.Path != "" {
Expand Down

0 comments on commit d0b52b9

Please sign in to comment.