File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
55you may not use this file except in compliance with the License.
66You may obtain a copy of the License at
77
8- http://www.apache.org/licenses/LICENSE-2.0
8+ http://www.apache.org/licenses/LICENSE-2.0
99
1010Unless required by applicable law or agreed to in writing, software
1111distributed under the License is distributed on an "AS IS" BASIS,
@@ -28,6 +28,7 @@ import (
2828 "k8s.io/cli-runtime/pkg/genericclioptions"
2929 "k8s.io/client-go/dynamic"
3030 _ "k8s.io/client-go/plugin/pkg/client/auth" // combined authprovider import
31+ "k8s.io/client-go/rest"
3132 "k8s.io/klog"
3233)
3334
@@ -73,6 +74,7 @@ func run(command *cobra.Command, args []string) error {
7374 if err != nil {
7475 return err
7576 }
77+ restConfig .WarningHandler = rest.NoWarnings {}
7678 restConfig .QPS = 1000
7779 restConfig .Burst = 1000
7880 dyn , err := dynamic .NewForConfig (restConfig )
You can’t perform that action at this time.
0 commit comments