Skip to content

Commit

Permalink
fix adding labels to node
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulait committed Feb 20, 2024
1 parent b41d8d2 commit dfe239a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloud/linode/node_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (s *nodeController) handleNode(ctx context.Context, node *v1.Node) error {

// Try to update the node
n.Labels[annLinodeHostUUID] = linode.HostUUID
_, err = s.kubeclient.CoreV1().Nodes().Update(ctx, node, metav1.UpdateOptions{})
_, err = s.kubeclient.CoreV1().Nodes().Update(ctx, n, metav1.UpdateOptions{})
return err
}); err != nil {
klog.Infof("node update error: %s", err.Error())
Expand Down

0 comments on commit dfe239a

Please sign in to comment.