Skip to content

Commit

Permalink
pkg/manager: make default RESTMapper lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
estroz committed Aug 9, 2019
1 parent b743ef2 commit 6d7d994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ func setOptionsDefaults(options Options) Options {

if options.MapperProvider == nil {
options.MapperProvider = func(c *rest.Config) (meta.RESTMapper, error) {
return apiutil.NewDynamicRESTMapper(c)
return apiutil.NewDynamicRESTMapper(c, apiutil.WithLazyDiscovery)
}
}

Expand Down

0 comments on commit 6d7d994

Please sign in to comment.