From 950e6cb44eb03f6e097a501a80b160eefe9017fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A6=B4=E8=8E=B2=E6=A6=B4=E8=8E=B2?= <78798447@qq.com> Date: Fri, 26 Apr 2024 15:15:03 +0800 Subject: [PATCH] fix: Delete unnecessary logs (#4710) --- pkg/client-go/kubernetes/client.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/client-go/kubernetes/client.go b/pkg/client-go/kubernetes/client.go index 5d73e05129e..5f5eec5ad47 100644 --- a/pkg/client-go/kubernetes/client.go +++ b/pkg/client-go/kubernetes/client.go @@ -17,8 +17,6 @@ package kubernetes import ( "path/filepath" - "github.com/labring/sealos/pkg/utils/logger" - fileutil "github.com/labring/sealos/pkg/utils/file" "k8s.io/client-go/discovery" @@ -65,11 +63,9 @@ func newKubernetesClient(kubeconfig, apiserver string, insecure bool) (Client, e config.TLSClientConfig.CAFile = "" config.TLSClientConfig.CAData = nil config.TLSClientConfig.Insecure = true - //logger.Info("insecure mode, skip verify apiserver certificate", config.TLSClientConfig) } - logger.Info("kubernetes client config", config.TLSClientConfig) - var k kubernetesClient + var k kubernetesClient k8s, err := kubernetes.NewForConfig(config) if err != nil { return nil, err