fluent-operator icon indicating copy to clipboard operation
fluent-operator copied to clipboard

parameterized the tagging of tail plugin

Open harshvora10101 opened this issue 1 year ago • 6 comments

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes 1 : Parameterising the tag for tail plugin. Overriding this value will help changing the tags according to the requirements.

harshvora10101 avatar Jul 11 '24 07:07 harshvora10101

@harshvora10101 Thanks for the PR. You'll need to sign your commit by:

git commit -s --amend
git push -f

benjaminhuo avatar Jul 11 '24 08:07 benjaminhuo

@benjaminhuo Added the required changes.

harshvora10101 avatar Jul 12 '24 10:07 harshvora10101

There are output plugins affected too https://github.com/fluent/fluent-operator/blob/master/charts/fluent-operator/templates/fluentbit-output-opensearch.yaml#L12

Fluent Operator is used to deploy FluentBit to collect k8s logs, so kube.* is ok. I wonder what's the reason for changing this tag to others.

cc @wanjunlei

benjaminhuo avatar Jul 12 '24 10:07 benjaminhuo

@benjaminhuo

With this change, we are not changing the tag (Just making the code generalized). So I doubt that output plugins will be affected.

There are use cases where we need multiple tail plugins for different applications with different tags. So a hardcoded tag is hard to change.

harshvora10101 avatar Jul 12 '24 10:07 harshvora10101

To be precise There are multiple tail plugins used for kubernetes with xyz.kube.* and abc.kube.* etc.

harshvora10101 avatar Jul 12 '24 10:07 harshvora10101

https://github.com/fluent/fluent-operator/blob/master/charts/fluent-operator/templates/fluentbit-output-elasticsearch.yaml#L12 Shouldn't this situation be dealt with as well?

wenchajun avatar Aug 15 '24 05:08 wenchajun

@harshvora10101 can you resolve the merge conflicts

$ git checkout master
$ git pull upstream master
$ git checkout parameterization-of-tags
$ git rebase - --signoff
$ git push --force-with-lease

marcofranssen avatar Oct 24 '25 08:10 marcofranssen

Closing due to inactivity. Please re-open if necessary.

joshuabaird avatar Oct 29 '25 14:10 joshuabaird