Skip to content

Commit

Permalink
fix: hide k8s warnings (#2316)
Browse files Browse the repository at this point in the history
Signed-off-by: Javier López Barba <javier@okteto.com>
  • Loading branch information
jLopezbarb committed Mar 7, 2022
1 parent 40f7d8f commit e0f43a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/okteto/k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ func getK8sClientWithApiConfig(clientApiConfig *clientcmdapi.Config) (*kubernete
if err != nil {
return nil, nil, err
}
config.WarningHandler = rest.NoWarnings{}

config.Timeout = getKubernetesTimeout()

Expand All @@ -92,6 +93,7 @@ func getDynamicClient(clientAPIConfig *clientcmdapi.Config) (dynamic.Interface,
if err != nil {
return nil, nil, err
}
config.WarningHandler = rest.NoWarnings{}

config.Timeout = getKubernetesTimeout()

Expand All @@ -110,6 +112,7 @@ func getDiscoveryClient(clientAPIConfig *clientcmdapi.Config) (discovery.Discove
if err != nil {
return nil, nil, err
}
config.WarningHandler = rest.NoWarnings{}

config.Timeout = getKubernetesTimeout()

Expand Down

0 comments on commit e0f43a7

Please sign in to comment.