MCPcopy
hub / github.com/kubernetes/kubectl / WithClientConfig

Method WithClientConfig

pkg/cmd/testing/fake.go:470–473  ·  view source on GitHub ↗

WithClientConfig sets the client config to use

(clientConfig clientcmd.ClientConfig)

Source from the content-addressed store, hash-verified

468
469// WithClientConfig sets the client config to use
470func (f *TestFactory) WithClientConfig(clientConfig clientcmd.ClientConfig) *TestFactory {
471 f.kubeConfigFlags.WithClientConfig(clientConfig)
472 return f
473}
474
475func (f *TestFactory) WithDiscoveryClient(discoveryClient discovery.CachedDiscoveryInterface) *TestFactory {
476 f.kubeConfigFlags.WithDiscoveryClient(discoveryClient)

Callers 3

NewTestFactoryFunction · 0.80
setMockFactoryFunction · 0.80

Calls

no outgoing calls

Tested by 2

setMockFactoryFunction · 0.64