Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
Ignore warnings from kubeclient
Browse files Browse the repository at this point in the history
  • Loading branch information
jerr committed Jun 8, 2022
1 parent e36fd9e commit dfcd8bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/k8sinternal/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ func NewKubeClientLocal(configPath string) (KubeClient, error) {
return nil, err
}

// Ignore warnings from kubeclient as they are expected to be reported by the deprecatedapi auditor.
kubeconfig.WarningHandler = rest.NoWarnings{}

return newKubeClientFromConfig(kubeconfig)
}

Expand Down

0 comments on commit dfcd8bd

Please sign in to comment.