From 9891591dee8a42bf3aae9e074437b6bffe04a097 Mon Sep 17 00:00:00 2001
From: Guillermo Facundo Colunga <guillermo.facundo.colunga@cern.ch>
Date: Tue, 21 Jan 2025 14:10:51 +0100
Subject: [PATCH] [MONIT-4106] values/logs/fluentbit: add default luaScripts
 value

In commit 8c054c8 we added support for lua scripts provided via user
values.

This commit adds a default value and documents this in the values file.

Reported-at: https://its.cern.ch/jira/browse/MONIT-4106
Signed-off-by: Guillermo Facundo Colunga <guillermo.facundo.colunga@gmail.com>
Signed-off-by: Guillermo Facundo Colunga <guillermo.facundo.colunga@cern.ch>
---
 values.yaml | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/values.yaml b/values.yaml
index 15c1580..ae64715 100644
--- a/values.yaml
+++ b/values.yaml
@@ -158,6 +158,17 @@ metrics:
       uri: /api/prom/push
       threaded: false
 
+    # These scripts are available in the fluentbit /fluent-bit/etc/scripts path.
+    # Include your lua scripts in the following format:
+    # luaScripts:
+    #  my_lua_script.lua: |
+    #   function my_function(tag, timestamp, record)
+    #     // Do something...
+    #     return 2, timestamp, record
+    #   end
+    #  my_other_lua_script.lua: ...
+    luaScripts: {}
+
     # -- max size for in-disk storage for fluent-bit
     diskMaxCache: "5G"
 
-- 
GitLab