Upgrade k8s package verison (#5358)

* upgrade k8s package version

Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>

* Script upgrade and code formatting.

Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>

Signed-off-by: hongzhouzi <hongzhouzi@kubesphere.io>
This commit is contained in:
hongzhouzi
2022-11-15 14:56:38 +08:00
committed by GitHub
parent 5f91c1663a
commit 44167aa47a
3106 changed files with 321340 additions and 172080 deletions

View File

@@ -27,7 +27,7 @@ import (
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/cache"
"k8s.io/client-go/tools/clientcmd"
"k8s.io/klog"
"k8s.io/klog/v2"
clusterv1alpha1 "kubesphere.io/api/cluster/v1alpha1"

View File

@@ -21,7 +21,7 @@ import (
"io"
"code.cloudfoundry.org/bytefmt"
"k8s.io/klog"
"k8s.io/klog/v2"
"kubesphere.io/kubesphere/pkg/utils/readerutils"
)

View File

@@ -20,7 +20,7 @@ import (
"encoding/json"
"strings"
"k8s.io/klog"
"k8s.io/klog/v2"
)
type JsonRawMessage []byte

View File

@@ -28,7 +28,7 @@ import (
"github.com/Masterminds/semver/v3"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/klog"
"k8s.io/klog/v2"
"kubesphere.io/api/application/v1alpha1"

View File

@@ -23,12 +23,12 @@ import (
"k8s.io/cli-runtime/pkg/genericclioptions"
"k8s.io/cli-runtime/pkg/resource"
"k8s.io/klog"
"k8s.io/klog/v2"
cmdutil "k8s.io/kubectl/pkg/cmd/util"
)
func Parse(reader io.Reader, namespace, rlsName string, local bool) ([]*resource.Info, error) {
if klog.V(2) {
if klog.V(2).Enabled() {
klog.Infof("parse resources, namespace: %s, release: %s", namespace, rlsName)
start := time.Now()
defer func() {