Skip to content

Commit

Permalink
Move warning options to 'GetKubeClientForConfig' (#1716)
Browse files Browse the repository at this point in the history
As this function is used by more functions to create Kubernetes clients, more KUDO subcommands will benefit from reduced CRD deprecation warnings when running on Kubernetes >=1.19.

Signed-off-by: Jan Schlicht <[email protected]>
  • Loading branch information
Jan Schlicht authored and kensipe committed Nov 16, 2020
1 parent 81ae0df commit 8e720b6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/kudoctl/kube/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ func GetKubeClient(kubeconfig string) (*Client, error) {
if err != nil {
return nil, err
}
config.WarningHandler = rest.NewWarningWriter(os.Stderr, rest.WarningWriterOptions{Deduplicate: true, Color: term.AllowsColorOutput(os.Stderr)})
return GetKubeClientForConfig(config)
}

Expand Down

0 comments on commit 8e720b6

Please sign in to comment.