We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d1d9884 + 8bec907 commit d7ef09eCopy full SHA for d7ef09e
test/framework/clientset.go
@@ -39,9 +39,10 @@ type ClientSet struct {
39
mcfgclient mcfgclientset.Interface
40
}
41
42
-// Allows the instantiation of additional clients with the same config.
+// Returns a copy of the config so that additional clients may be instantiated
43
+// from it. By making a copy, callers are free to modify the config as needed.
44
func (cs *ClientSet) GetRestConfig() *rest.Config {
- return cs.config
45
+ return rest.CopyConfig(cs.config)
46
47
48
func (cs *ClientSet) GetKubeconfig() (string, error) {
0 commit comments