-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: handling optional bool parameters for Splunk ClusterOutput #428
Conversation
Signed-off-by: ITler <ITler@users.noreply.github.com>
https://github.com/fluent/fluent-operator/blob/master/apis/fluentbit/v1alpha2/plugins/output/elasticsearch_types.go#L163 |
@wenchajun You mean to say, we should code it like this:
I think this solution will confuse people that set this option to false. If someone sets it to false they expect to see "Off" in the generated fluent-bit-config. When we use the above code: setting http_debug_bad_request to false will have no visible effect on the generated fluent-bit-config. I mean it will work as the implicit default is "Off" but it will be confusing for most people. Simply because they do not see the "Off" in the config. |
We can code it as you would prefer wenchajun - just let us know. We just want to get the PR merged and, more important for us, would like to get a new release out of it ASAP. |
First, fluentbit is written in c. In the configuration file,
Second, because of the first point, so you have written in that |
Ha! We were not aware of the |
Seems that DCO failed, please commit with a signature
|
3dff15d
to
0995e9e
Compare
Signed-off-by: ITler <ITler@users.noreply.github.com>
fixed... sorry, I am not used to that. |
Would you be able to create a new release of fluent-operator then? |
Sure, @wenchajun will release v1.6 soon |
What this PR does / why we need it:
This PR fixes
nil
pointer exceptions while rendering fluentbit config, when SplunkClusterOutput
does not define boolean attributes.It was fixed by intention in a way to explicitly show
Off
values when the respective boolean attributes are explicitly defined in theClusterOutput
definition, despite the fact thatOff
might be the default value when not provided.It is confirmed working, locally, now.
Which issue(s) this PR fixes:
Fixes #
no issue raised, yet, as the Splunk output was contributed by 'us' and there was no fluent-operator release for that, yet.
Does this PR introduced a user-facing change?
Additional documentation, usage docs, etc.: