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?