mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 12:16:03 +09:00
The tenant Kubernetes application refused fluent-bit extraOutputs
unless an outputs override spelled the hook exactly as the default
outputs do, matched by a regular expression over the template text.
monitoring-agents decides the same question by rendering outputs, so
a hook written with if, or a bare {{ .Values.config.extraOutputs }},
was refused by the application although the addon renders it.
Keep a check in the application, because the addon fails in a
HelmRelease the tenant cannot read, but reduce it to whether outputs
mentions .Values.config.extraOutputs at all. That catches an override
that drops the hook and is never stricter than the addon for a hook
that names the value. It cannot be exact without executing the tenant
template, which here would run it in the management cluster; a hook
that is commented out or trims its newline is left to the addon's
render guard, which already tests both.
Fixes: 64fa40e255 ("feat(monitoring): add destinations to the agents without replacing the defaults")
Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la>