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.
2 parents 5f0aee6 + 95b14b1 commit 43a3cd8Copy full SHA for 43a3cd8
pkg/client/apiutil/apimachinery.go
@@ -35,7 +35,10 @@ import (
35
// information fetched by a new client with the given config.
36
func NewDiscoveryRESTMapper(c *rest.Config) (meta.RESTMapper, error) {
37
// Get a mapper
38
- dc := discovery.NewDiscoveryClientForConfigOrDie(c)
+ dc, err := discovery.NewDiscoveryClientForConfig(c)
39
+ if err != nil {
40
+ return nil, err
41
+ }
42
gr, err := restmapper.GetAPIGroupResources(dc)
43
if err != nil {
44
return nil, err
0 commit comments