Skip to content

Commit

Permalink
Make a copy of rest.Config provided to k8s.io/cli-runtime. (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
porridge authored Aug 5, 2022
1 parent a307065 commit 14db3a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/client/restclientgetter.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type restClientGetter struct {
}

func (c *restClientGetter) ToRESTConfig() (*rest.Config, error) {
return c.restConfig, nil
return rest.CopyConfig(c.restConfig), nil
}

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

0 comments on commit 14db3a2

Please sign in to comment.