Skip to content

Allow passing files other than ".conf" via "extraFiles" in Fluentbit configuration #222

@mkielar

Description

@mkielar

Context

I'm trying to pass a Lua script, to use by FluentBit. to do that, I passed the lua file through extraFiles property.
The problematic part is how the Helm Chart generated the fluent-bit.conf:

data:
  fluent-bit.conf: |
    {{- .Values.containerLogs.fluentBit.config.service  | nindent 4 }}
    {{- range $key, $val := .Values.containerLogs.fluentBit.config.extraFiles }}
    @INCLUDE {{ $key }}
    {{- end }}

This implementation causes all files in extraFiles collection to be treated the same way, and added to fluent-bit.conf using @INCLUDE directive. Needless to day, including a Lua script this way it breaks entire configuration.

Feature request

Can we add scripts property in containerLogs.fluentBit.config to allow passing files that are not supposed to be embedded in fluent-bit.conf?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions