NewDefaultClientConfig creates a DirectClientConfig using the config.CurrentContext as the context name
(config clientcmdapi.Config, overrides *ConfigOverrides)
| 86 | |
| 87 | // NewDefaultClientConfig creates a DirectClientConfig using the config.CurrentContext as the context name |
| 88 | func NewDefaultClientConfig(config clientcmdapi.Config, overrides *ConfigOverrides) ClientConfig { |
| 89 | return &DirectClientConfig{config, config.CurrentContext, overrides, nil, NewDefaultClientConfigLoadingRules(), promptedCredentials{}} |
| 90 | } |
| 91 | |
| 92 | // NewNonInteractiveClientConfig creates a DirectClientConfig using the passed context name and does not have a fallback reader for auth information |
| 93 | func NewNonInteractiveClientConfig(config clientcmdapi.Config, contextName string, overrides *ConfigOverrides, configAccess ConfigAccess) ClientConfig { |