We have requirement where we create the ConfigMap of lua scripts outside the fluent-bit charts. The reason is that configmap-luascripts.yaml file in the chart does not support rendering.
After creating custom configMap with the required lua scripts, i have tried to enable hotReload. But because of the way chart is designed https://github.com/fluent/helm-charts/blob/main/charts/fluent-bit/templates/_pod.tpl#L94https://github.com/fluent/helm-charts/blob/main/charts/fluent-bit/templates/configmap-luascripts.yaml#L1 when ever hotReload is enabled it tries to create a lua scripts configMap does not matter what we have at .Values.luaScripts and it overwrites my custom config mountpoint inside the pod (/fluent-bit/scripts) which causes fluent-bit to fail since the script does not exists any more at path /fluent-bit/scripts/<script.lua>.
My suggestion is to support hotReload without mixing with the lua script config.
We have requirement where we create the ConfigMap of lua scripts outside the fluent-bit charts. The reason is that
configmap-luascripts.yaml
file in the chart does not support rendering. After creating custom configMap with the required lua scripts, i have tried to enablehotReload
. But because of the way chart is designed https://github.com/fluent/helm-charts/blob/main/charts/fluent-bit/templates/_pod.tpl#L94 https://github.com/fluent/helm-charts/blob/main/charts/fluent-bit/templates/configmap-luascripts.yaml#L1 when everhotReload
is enabled it tries to create a lua scripts configMap does not matter what we have at.Values.luaScripts
and it overwrites my custom config mountpoint inside the pod (/fluent-bit/scripts
) which causesfluent-bit
to fail since the script does not exists any more at path/fluent-bit/scripts/<script.lua>
.My suggestion is to support
hotReload
without mixing with the lua script config.Thanks