diff --git a/bcs-services/bcs-cluster-manager/internal/cloudprovider/aws/tasks/importCluster.go b/bcs-services/bcs-cluster-manager/internal/cloudprovider/aws/tasks/importCluster.go index 0b6bd796d4..9b13f32371 100644 --- a/bcs-services/bcs-cluster-manager/internal/cloudprovider/aws/tasks/importCluster.go +++ b/bcs-services/bcs-cluster-manager/internal/cloudprovider/aws/tasks/importCluster.go @@ -119,7 +119,7 @@ func ImportClusterNodesTask(taskID string, stepName string) error { return nil } -func importClusterInstances(data *cloudprovider.CloudDependBasicInfo) error { +func importClusterInstances(data *cloudprovider.CloudDependBasicInfo) error { // nolint kubeConfig, err := encrypt.Decrypt(nil, data.Cluster.KubeConfig) if err != nil { return fmt.Errorf("decode kube config failed: %v", err) diff --git a/bcs-services/bcs-cluster-manager/internal/cloudprovider/azure/tasks/utils.go b/bcs-services/bcs-cluster-manager/internal/cloudprovider/azure/tasks/utils.go index 1c1050ccc1..07a1121b4a 100644 --- a/bcs-services/bcs-cluster-manager/internal/cloudprovider/azure/tasks/utils.go +++ b/bcs-services/bcs-cluster-manager/internal/cloudprovider/azure/tasks/utils.go @@ -31,7 +31,7 @@ import ( "github.com/Tencent/bk-bcs/bcs-services/bcs-cluster-manager/internal/common" ) -func importClusterNodesToCM(ctx context.Context, nodes []k8scorev1.Node, clusterID string) error { +func importClusterNodesToCM(ctx context.Context, nodes []k8scorev1.Node, clusterID string) error { // nolint for _, n := range nodes { innerIP := "" for _, v := range n.Status.Addresses { diff --git a/bcs-services/bcs-cluster-manager/internal/cloudprovider/google/tasks/importCluster.go b/bcs-services/bcs-cluster-manager/internal/cloudprovider/google/tasks/importCluster.go index 3616d0b199..3de5ddb160 100644 --- a/bcs-services/bcs-cluster-manager/internal/cloudprovider/google/tasks/importCluster.go +++ b/bcs-services/bcs-cluster-manager/internal/cloudprovider/google/tasks/importCluster.go @@ -153,7 +153,7 @@ func importClusterCredential(ctx context.Context, data *cloudprovider.CloudDepen return nil } -func importClusterInstances(data *cloudprovider.CloudDependBasicInfo) error { +func importClusterInstances(data *cloudprovider.CloudDependBasicInfo) error { // nolint config, _ := encrypt.Decrypt(nil, data.Cluster.KubeConfig) kubeRet := base64.StdEncoding.EncodeToString([]byte(config)) diff --git a/bcs-services/bcs-cluster-manager/internal/cloudprovider/huawei/tasks/importCluster.go b/bcs-services/bcs-cluster-manager/internal/cloudprovider/huawei/tasks/importCluster.go index 7185e85037..5739276852 100644 --- a/bcs-services/bcs-cluster-manager/internal/cloudprovider/huawei/tasks/importCluster.go +++ b/bcs-services/bcs-cluster-manager/internal/cloudprovider/huawei/tasks/importCluster.go @@ -158,7 +158,7 @@ func ImportClusterNodesTask(taskID string, stepName string) error { return nil } -func importClusterInstances(info *cloudprovider.CloudDependBasicInfo) error { +func importClusterInstances(info *cloudprovider.CloudDependBasicInfo) error { // nolint kubeConfigByte, err := encrypt.Decrypt(nil, info.Cluster.KubeConfig) if err != nil { return fmt.Errorf("decode kube config failed: %v", err) diff --git a/bcs-services/bcs-cluster-manager/internal/cloudprovider/qcloud-public/tasks/utils.go b/bcs-services/bcs-cluster-manager/internal/cloudprovider/qcloud-public/tasks/utils.go index 08c27b600e..2e137c5b35 100644 --- a/bcs-services/bcs-cluster-manager/internal/cloudprovider/qcloud-public/tasks/utils.go +++ b/bcs-services/bcs-cluster-manager/internal/cloudprovider/qcloud-public/tasks/utils.go @@ -76,7 +76,7 @@ func transInstanceIPToNodes(ipList []string, opt *cloudprovider.ListNodesOption) return nodes, nil } -func importClusterNodesToCM(ctx context.Context, workNodes []InstanceInfo, opt *cloudprovider.ListNodesOption) error { +func importClusterNodesToCM(ctx context.Context, workNodes []InstanceInfo, opt *cloudprovider.ListNodesOption) error { // nolint var ( workerIps = make([]string, 0) ipToInstanceMap = make(map[string]InstanceInfo, 0) diff --git a/bcs-services/bcs-cluster-manager/internal/cloudprovider/qcloud/tasks/importCluster.go b/bcs-services/bcs-cluster-manager/internal/cloudprovider/qcloud/tasks/importCluster.go index 12afa6fe58..ac304ac606 100644 --- a/bcs-services/bcs-cluster-manager/internal/cloudprovider/qcloud/tasks/importCluster.go +++ b/bcs-services/bcs-cluster-manager/internal/cloudprovider/qcloud/tasks/importCluster.go @@ -317,7 +317,7 @@ func importClusterCredential(ctx context.Context, data *cloudprovider.CloudDepen return nil } -func importClusterInstances(data *cloudprovider.CloudDependBasicInfo) error { +func importClusterInstances(data *cloudprovider.CloudDependBasicInfo) error { // nolint masterInfos, nodeInfos, err := getClusterInstancesByClusterID(data) if err != nil { return err