Werk #18523: agent_kube: Fix error when specifying multiple namespaces

Component Checks & agents
Title agent_kube: Fix error when specifying multiple namespaces
Date Aug 20, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0p11 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

The kubernetes special agent configuration allows the specification of which namespaces should be monitored. This can be done by specifying patterns matching the namespaces to be included or excluded.

In case multiple of these patterns were specified, the agent would fail with the error message

[special_kube] agent_kube: error: unrecognized arguments: <PATTERN>

This has been fixed.

To the list of all Werks