Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulait committed Jun 14, 2024
1 parent 71e7855 commit 1b845a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cloud/linode/node_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ func (s *nodeController) Run(stopCh <-chan struct{}) {
klog.Errorf("NodeController can't handle newly created node's metadata. %s", err)
}

klog.Infof("Starting wait.Until")
go wait.Until(s.worker, time.Second, stopCh)
klog.Infof("Finished wait.Until")
s.informer.Informer().Run(stopCh)
}

Expand All @@ -83,6 +85,7 @@ func (s *nodeController) worker() {
}

func (s *nodeController) processNext() bool {
klog.Infof("Procesing new node from queue")
key, quit := s.queue.Get()
if quit {
return false
Expand All @@ -95,7 +98,9 @@ func (s *nodeController) processNext() bool {
return true
}

klog.Infof("Started processing node: (%s)", node.Name)
err := s.handleNode(context.TODO(), node)
klog.Infof("Finished processing node (%s)", node.Name)
switch deleteErr := err.(type) {
case nil:
break
Expand Down

0 comments on commit 1b845a4

Please sign in to comment.