kubectl negotiates apiversion to use based on client,server supported

This commit is contained in:
Jeff Lowdermilk
2015-06-12 19:06:18 -07:00
parent 65ea6b914c
commit f31191224b
4 changed files with 105 additions and 27 deletions

View File

@@ -102,10 +102,7 @@ func NewFactory(optionalClientConfig clientcmd.ClientConfig) *Factory {
clientConfig = DefaultClientConfig(flags)
}
clients := &clientCache{
clients: make(map[string]*client.Client),
loader: clientConfig,
}
clients := NewClientCache(clientConfig)
return &Factory{
clients: clients,