cozystack/internal/telemetry
Andrei Kvapil af320a86a0
fix(telemetry): use APIReader instead of cached client in operator
The cozystack-operator's manager cache is filtered to only include
specific secrets and namespaces with certain labels. This caused
telemetry collection to fail because resources like kube-system
namespace, nodes, services, and PVs were not in the cache.

Switch to using mgr.GetAPIReader() which bypasses the cache and
queries the API server directly. This is appropriate for telemetry
since it only runs every 15 minutes.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2026-01-27 18:06:30 +01:00
..
collector.go refactor(labels): remove cozystack.io/ui label 2026-01-19 13:59:29 +01:00
config.go refactor(telemetry): split telemetry between operator and controller 2026-01-19 13:52:15 +01:00
operator_collector.go fix(telemetry): use APIReader instead of cached client in operator 2026-01-27 18:06:30 +01:00