Skip to content

Commit

Permalink
fix: Delete unnecessary logs (#4710)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostloda authored Apr 26, 2024
1 parent 7362d80 commit 950e6cb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/client-go/kubernetes/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 950e6cb

Please sign in to comment.