From 883574a69c42bd8ec406f1f14d23253aa24d5b65 Mon Sep 17 00:00:00 2001 From: Kristof Gyuracz Date: Wed, 14 Feb 2024 14:51:48 +0100 Subject: [PATCH] fix: update statuses of collectors Signed-off-by: Kristof Gyuracz --- internal/controller/telemetry/collector_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/telemetry/collector_controller.go b/internal/controller/telemetry/collector_controller.go index 4c0db1c5..593a3ce5 100644 --- a/internal/controller/telemetry/collector_controller.go +++ b/internal/controller/telemetry/collector_controller.go @@ -165,7 +165,7 @@ func (r *CollectorReconciler) Reconcile(ctx context.Context, req ctrl.Request) ( collector.Status.Tenants = tenantNames - if reflect.DeepEqual(*originalCollectorStatus, collector.Status) { + if !reflect.DeepEqual(*originalCollectorStatus, collector.Status) { logger.Info("updating collector status") err = r.Status().Update(ctx, collector) if err != nil {