We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2ceb54 commit a92953fCopy full SHA for a92953f
pkg/datagatherer/k8s/client.go
@@ -33,7 +33,7 @@ func NewDiscoveryClient(kubeconfigPath string) (discovery.DiscoveryClient, error
33
34
cfg, err := loadRESTConfig(kubeconfigPath)
35
if err != nil {
36
- return *discoveryClient, errors.WithStack(err)
+ return discovery.DiscoveryClient{}, errors.WithStack(err)
37
}
38
39
discoveryClient, err = discovery.NewDiscoveryClientForConfig(cfg)
0 commit comments