Skip to content

Commit 14db3a2

Browse files
authored
Make a copy of rest.Config provided to k8s.io/cli-runtime. (#190)
1 parent a307065 commit 14db3a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/client/restclientgetter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ type restClientGetter struct {
4848
}
4949

5050
func (c *restClientGetter) ToRESTConfig() (*rest.Config, error) {
51-
return c.restConfig, nil
51+
return rest.CopyConfig(c.restConfig), nil
5252
}
5353

5454
func (c *restClientGetter) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error) {

0 commit comments

Comments
 (0)