MCPcopy
hub / github.com/kubernetes/client-go / NewDefaultClientConfig

Function NewDefaultClientConfig

tools/clientcmd/client_config.go:88–90  ·  view source on GitHub ↗

NewDefaultClientConfig creates a DirectClientConfig using the config.CurrentContext as the context name

(config clientcmdapi.Config, overrides *ConfigOverrides)

Source from the content-addressed store, hash-verified

86
87// NewDefaultClientConfig creates a DirectClientConfig using the config.CurrentContext as the context name
88func 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
93func NewNonInteractiveClientConfig(config clientcmdapi.Config, contextName string, overrides *ConfigOverrides, configAccess ConfigAccess) ClientConfig {

Callers 2

TestCreateCleanDefaultFunction · 0.85

Calls 1

Tested by 2

TestCreateCleanDefaultFunction · 0.68