From dfe239aac5e645e26dbb8104521e2ed12cdf9891 Mon Sep 17 00:00:00 2001 From: Rahul Sharma Date: Tue, 20 Feb 2024 22:30:37 +0000 Subject: [PATCH] fix adding labels to node --- cloud/linode/node_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/linode/node_controller.go b/cloud/linode/node_controller.go index d8be9eda..49880a97 100644 --- a/cloud/linode/node_controller.go +++ b/cloud/linode/node_controller.go @@ -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())