Skip to content

Commit

Permalink
disable printing warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetb committed Jul 26, 2023
1 parent 3bfade5 commit 1bab145
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/kubectl-tree/rootcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand All @@ -28,6 +28,7 @@ import (
"k8s.io/cli-runtime/pkg/genericclioptions"
"k8s.io/client-go/dynamic"
_ "k8s.io/client-go/plugin/pkg/client/auth" // combined authprovider import
"k8s.io/client-go/rest"
"k8s.io/klog"
)

Expand Down Expand Up @@ -73,6 +74,7 @@ func run(command *cobra.Command, args []string) error {
if err != nil {
return err
}
restConfig.WarningHandler = rest.NoWarnings{}
restConfig.QPS = 1000
restConfig.Burst = 1000
dyn, err := dynamic.NewForConfig(restConfig)
Expand Down

0 comments on commit 1bab145

Please sign in to comment.