Skip to content

Commit

Permalink
Merge pull request #181 from linode/fix-node-label-update
Browse files Browse the repository at this point in the history
fix adding labels to node
  • Loading branch information
rahulait authored Feb 21, 2024
2 parents b41d8d2 + dfe239a commit 2e2a2fd
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 2e2a2fd

Please sign in to comment.