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

Datadog fluentbit ouput plugin Api Key secret

Open javi-rodriguez-chainalysis opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe.

When configuring the Datadog fluentbit output plugin, API key has to be passed as a raw string and does not allow for secret injection.

https://github.com/fluent/fluent-operator/blob/master/apis/fluentbit/v1alpha2/plugins/output/datadog_types.go#L24

Describe the solution you'd like

Be able to pass the API key as a secret like in fluentd https://github.com/fluent/fluent-operator/blob/master/apis/fluentd/v1alpha1/plugins/output/datadog.go#L8

Additional context

No response

Hi @wenchajun , I'm currently learning k8s. i'm interested in contributing to this issue. I have one question for this do we to update tests files for this change ? Thanks

nitintecg avatar Feb 21 '24 07:02 nitintecg

Yes, we need to refine the test file, please refer to : https://github.com/fluent/fluent-operator/blob/master/apis/fluentbit/v1alpha2/plugins/output/datadog_types_test.go

wenchajun avatar Feb 21 '24 07:02 wenchajun