From c83d1ba00cc22ba59b27eaab5fd02bc9f5284147 Mon Sep 17 00:00:00 2001 From: adamzhoul <770822772@qq.com> Date: Wed, 22 Sep 2021 14:21:11 +0800 Subject: [PATCH] rm duplicated code (#490) Co-authored-by: zhoulei5 --- pkg/yurtctl/cmd/convert/edgenode.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/yurtctl/cmd/convert/edgenode.go b/pkg/yurtctl/cmd/convert/edgenode.go index 66702d5259c..53ab08fa7f5 100644 --- a/pkg/yurtctl/cmd/convert/edgenode.go +++ b/pkg/yurtctl/cmd/convert/edgenode.go @@ -277,12 +277,6 @@ func (c *ConvertEdgeNodeOptions) RunConvertEdgeNode() (err error) { return err } - // 3.6. open the autonomous - klog.Infof("open the %s autonomous", nodeName) - _, err = kubeutil.AnnotateNode(c.clientSet, node, constants.AnnotationAutonomy, "true") - if err != nil { - return err - } } else { return fmt.Errorf("fail to revert edge node, flag --edge-nodes %s err", c.EdgeNodes) }