Skip to content

Commit

Permalink
fix: update statuses of collectors
Browse files Browse the repository at this point in the history
Signed-off-by: Kristof Gyuracz <[email protected]>
  • Loading branch information
kristofgyuracz committed Feb 14, 2024
1 parent 0010d28 commit 883574a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/telemetry/collector_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 883574a

Please sign in to comment.