Files
cozystack/packages/apps/kubernetes/tests
Aleksei Sviridkin 2b4371dae4 fix(kubernetes): stop refusing extraOutputs hooks monitoring-agents accepts
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>
2026-11-25 12:22:24 +03:00
..