1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-01 15:18:20 +00:00

Allow discovery of API clients

This commit is contained in:
Darren Shepherd
2019-01-11 16:55:37 -07:00
parent ad8537c903
commit 1fd5af67a4
5 changed files with 148 additions and 43 deletions

View File

@@ -204,6 +204,8 @@ func (c *Config) defaults(ctx context.Context, r *Runtime, opts Options) (contex
}
}
r.LocalConfig = c.Config
if c.ClientGetter == nil {
cg, err := proxy.NewClientGetterFromConfig(*c.Config)
if err != nil {