Don't watch and POST Worker pods to Hub

This commit is contained in:
M. Mert Yildiran
2023-01-21 03:09:15 +03:00
parent f128ae3993
commit 846f253a03
3 changed files with 0 additions and 116 deletions

View File

@@ -161,12 +161,6 @@ func startWorkerSyncer(ctx context.Context, cancel context.CancelFunc, provider
return
}
go connector.PostTargetedPodsToHub(workerSyncer.CurrentlyTargetedPods)
case pod, ok := <-workerSyncer.WorkerPodsChanges:
if !ok {
log.Debug().Msg("workerSyncer worker status changed channel closed, ending listener loop")
return
}
go connector.PostWorkerPodToHub(pod)
case <-ctx.Done():
log.Debug().Msg("workerSyncer event listener loop exiting due to context done")
return