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

Method WithNamespace

pkg/cmd/testing/fake.go:464–467  ·  view source on GitHub ↗

WithNamespace is used to mention namespace reactively

(ns string)

Source from the content-addressed store, hash-verified

462
463// WithNamespace is used to mention namespace reactively
464func (f *TestFactory) WithNamespace(ns string) *TestFactory {
465 f.kubeConfigFlags.WithNamespace(ns)
466 return f
467}
468
469// WithClientConfig sets the client config to use
470func (f *TestFactory) WithClientConfig(clientConfig clientcmd.ClientConfig) *TestFactory {

Callers 15

TestValidateLogOptionsFunction · 0.95
TestApplyFlagValidationFunction · 0.95
TestEditFunction · 0.95
TestLogFunction · 0.80
TestCopyToPodFunction · 0.80
TestCopyFromPodFunction · 0.80
TestCopyToPodNoPreserveFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestValidateLogOptionsFunction · 0.76
TestApplyFlagValidationFunction · 0.76
TestEditFunction · 0.76
TestLogFunction · 0.64
TestCopyToPodFunction · 0.64
TestCopyFromPodFunction · 0.64
TestCopyToPodNoPreserveFunction · 0.64