mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-21 09:34:40 +00:00
Fix client name for dynamic clients
This commit is contained in:
parent
c5147bdb16
commit
48a21be72b
@ -50,8 +50,9 @@ type clientPoolImpl struct {
|
|||||||
|
|
||||||
// NewClientPool returns a ClientPool from the specified config
|
// NewClientPool returns a ClientPool from the specified config
|
||||||
func NewClientPool(config *restclient.Config, apiPathResolverFunc APIPathResolverFunc) ClientPool {
|
func NewClientPool(config *restclient.Config, apiPathResolverFunc APIPathResolverFunc) ClientPool {
|
||||||
|
confCopy := *config
|
||||||
return &clientPoolImpl{
|
return &clientPoolImpl{
|
||||||
config: config,
|
config: &confCopy,
|
||||||
clients: map[unversioned.GroupVersion]*Client{},
|
clients: map[unversioned.GroupVersion]*Client{},
|
||||||
apiPathResolverFunc: apiPathResolverFunc,
|
apiPathResolverFunc: apiPathResolverFunc,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user