Skip to content

fix(fluentbit): render a shared ClusterMultilineParser only once - #2105

Open
arpitjain099 wants to merge 1 commit into
fluent:masterfrom
arpitjain099:fix/multilineparser-dedup
Open

arpitjain099 wants to merge 1 commit into
fluent:masterfrom
arpitjain099:fix/multilineparser-dedup

Conversation

@arpitjain099

Copy link
Copy Markdown

ListFluentBitConfigResources renames each cluster-level copy to <name>-<md5(namespace)>, so two FluentBitConfigs in one namespace that both select the same ClusterMultilineParser give RenderMultilineParserConfig two lists holding the identical name. Both are written, and Fluent Bit gets two [MULTILINE_PARSER] sections sharing a Name.

RenderParserConfig right above it already carries an existingParsers set for exactly this case. The multiline path never got one.

I added a test for the multiline path and one for the parser path as a control. Before the change the multiline case writes the section twice and the parser case once. go test -race ./apis/... passes.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: arpitjain099 <arpitjain099@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant