Skip to content
Snippets Groups Projects
Commit 4cad3bde authored by Guillermo Facundo Colunga's avatar Guillermo Facundo Colunga
Browse files

[MONIT-4106] fluentbit/logs: add support for user provided lua scripts

While doing trying to mimic the OpenShift logging setup with the current
Helm chart we noticed that they were using the lua scripts input from
the fluent bit official Helm chart. In our case this was not possible
and had to be done by adding secrets one by one.

We agreed to mimic this behaviour and had our own helm chart have the
option to add lua scripts to the fluent bit via helm chart values.

This commit modifies the configmap used to create the lua script that
we required for the timestampt in such a way that now it creates this
first lua script but also creates any other provided by the users via
the values of the helm chart.

Reported-at: https://its.cern.ch/jira/browse/MONIT-4106


Signed-off-by: default avatarGuillermo Facundo Colunga <guillermo.facundo.colunga@gmail.com>
Signed-off-by: Guillermo Facundo Colunga's avatarGuillermo Facundo Colunga <guillermo.facundo.colunga@cern.ch>
parent 5b88e747
No related branches found
No related tags found
1 merge request!41[MONIT-4106] Add Support for User-Provided Lua Scripts in Fluent Bit Helm Chart
......@@ -12,4 +12,9 @@ data:
record['timestamp'] = exp_sec * 1000
return 2, timestamp, record
end
{{- end -}}
{{- if .Values.logs.fluentbit.luaScripts -}}
{{ range $key, $value := .Values.logs.fluentbit.luaScripts }}
{{ $key }}: {{ $value | quote }}
{{ end }}
{{ end }}
{{- end -}}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment