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

Function NewNonInteractiveClientConfig

tools/clientcmd/client_config.go:93–95  ·  view source on GitHub ↗

NewNonInteractiveClientConfig creates a DirectClientConfig using the passed context name and does not have a fallback reader for auth information

(config clientcmdapi.Config, contextName string, overrides *ConfigOverrides, configAccess ConfigAccess)

Source from the content-addressed store, hash-verified

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 {
94 return &DirectClientConfig{config, contextName, overrides, nil, configAccess, promptedCredentials{}}
95}
96
97// NewInteractiveClientConfig creates a DirectClientConfig using the passed context name and a reader in case auth information is not provided via files or flags
98func NewInteractiveClientConfig(config clientcmdapi.Config, contextName string, overrides *ConfigOverrides, fallbackReader io.Reader, configAccess ConfigAccess) ClientConfig {

Callers 11

createClientConfigMethod · 0.85
TestInsecureOverridesCAFunction · 0.85
TestMergeContextFunction · 0.85
TestCertificateDataFunction · 0.85
TestBasicAuthDataFunction · 0.85
TestBasicTokenFileFunction · 0.85
TestPrecedenceTokenFileFunction · 0.85
TestCreateCleanFunction · 0.85
TestCreateMissingContextFunction · 0.85

Calls

no outgoing calls

Tested by 10

TestInsecureOverridesCAFunction · 0.68
TestMergeContextFunction · 0.68
TestCertificateDataFunction · 0.68
TestBasicAuthDataFunction · 0.68
TestBasicTokenFileFunction · 0.68
TestPrecedenceTokenFileFunction · 0.68
TestCreateCleanFunction · 0.68
TestCreateMissingContextFunction · 0.68