Fix client name for dynamic clients

This commit is contained in:
Wojciech Tyczynski 2016-05-17 13:31:30 +02:00
parent c5147bdb16
commit 48a21be72b

View File

@ -50,8 +50,9 @@ type clientPoolImpl struct {
// NewClientPool returns a ClientPool from the specified config
func NewClientPool(config *restclient.Config, apiPathResolverFunc APIPathResolverFunc) ClientPool {
confCopy := *config
return &clientPoolImpl{
config: config,
config: &confCopy,
clients: map[unversioned.GroupVersion]*Client{},
apiPathResolverFunc: apiPathResolverFunc,
}