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 9b13f32371..7bb334a2da 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 { // nolint +func importClusterInstances(data *cloudprovider.CloudDependBasicInfo) error { // nolint:unused 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 07a1121b4a..12e3dc2070 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 { // nolint +func importClusterNodesToCM(ctx context.Context, nodes []k8scorev1.Node, clusterID string) error { // nolint:unused 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 3de5ddb160..381dad1ea3 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 { // nolint +func importClusterInstances(data *cloudprovider.CloudDependBasicInfo) error { // nolint:unused 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 5739276852..95f036be38 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 { // nolint +func importClusterInstances(info *cloudprovider.CloudDependBasicInfo) error { // nolint:unused 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 2e137c5b35..fa2ce0a55b 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 { // nolint +func importClusterNodesToCM(ctx context.Context, workNodes []InstanceInfo, opt *cloudprovider.ListNodesOption) error { // nolint:unused 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 ac304ac606..5b3ad45a81 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 { // nolint +func importClusterInstances(data *cloudprovider.CloudDependBasicInfo) error { // nolint:unused masterInfos, nodeInfos, err := getClusterInstancesByClusterID(data) if err != nil { return err