summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKubeEdge Bot <48982446+kubeedge-bot@users.noreply.github.com>2023-11-27 17:28:40 +0800
committerGitHub <noreply@github.com>2023-11-27 17:28:40 +0800
commitbc7c4eb2775189f21d85434b8a57a19880ab5cfc (patch)
treefdd07c4670102b221f082cabe7560c52980a56b8
parentMerge pull request #5208 from wbc6080/automated-cherry-pick-of-#5070-upstream... (diff)
parentFix error logs for nodegroupx (diff)
downloadkubeedge-bc7c4eb2775189f21d85434b8a57a19880ab5cfc.tar.gz
Merge pull request #5213 from Onion-of-dreamed/automated-cherry-pick-of-#5107-upstream-release-1.15
Automated cherry pick of #5107: Fix error logs for nodegroupx
-rw-r--r--cloud/pkg/controllermanager/nodegroup/nodegroupcontroller.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloud/pkg/controllermanager/nodegroup/nodegroupcontroller.go b/cloud/pkg/controllermanager/nodegroup/nodegroupcontroller.go
index 212ff4208..ac83d45cf 100644
--- a/cloud/pkg/controllermanager/nodegroup/nodegroupcontroller.go
+++ b/cloud/pkg/controllermanager/nodegroup/nodegroupcontroller.go
@@ -356,7 +356,7 @@ func (c *Controller) addOrUpdateNodeLabel(ctx context.Context, node *corev1.Node
return nil
}
if ok && v != nodeGroupName {
- return fmt.Errorf("node %s has already belonged to NodeGroup %s", node.Name, nodeGroupName)
+ return fmt.Errorf("node %s has already belonged to NodeGroup %s", node.Name, v)
}
// !ok