Skip to content

Commit

Permalink
feat: node update should trigger metadata update
Browse files Browse the repository at this point in the history
Signed-off-by: Mateusz Urbanek <[email protected]>
  • Loading branch information
shanduur-akamai committed Jan 4, 2024
1 parent 053f6d6 commit e33731b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cloud/linode/node_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,16 @@ func (s *nodeController) Run(stopCh <-chan struct{}) {
return
}

klog.Infof("NodeController will handle node (%s) metadata", node.Name)
klog.Infof("NodeController will handle newly created node (%s) metadata", node.Name)
s.queue.Add(node)
},
UpdateFunc: func(_, new interface{}) {
node, ok := new.(*v1.Node)
if !ok {
return
}

klog.Infof("NodeController will handle updated node (%s) metadata", node.Name)
s.queue.Add(node)
},
})
Expand Down

0 comments on commit e33731b

Please sign in to comment.