Merge pull request #17326 from caesarxuchao/grooupVersion-lastest

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot
2015-12-01 05:05:40 -08:00
32 changed files with 82 additions and 107 deletions

View File

@@ -544,11 +544,8 @@ func defaultVersionFor(config *Config) *unversioned.GroupVersion {
// Clients default to the preferred code API version
// TODO: implement version negotiation (highest version supported by server)
// TODO this drops out when groupmeta is refactored
gv, err := unversioned.ParseGroupVersion(latest.GroupOrDie("").GroupVersion)
if err != nil {
panic(err)
}
return &gv
copyGroupVersion := latest.GroupOrDie("").GroupVersion
return &copyGroupVersion
}
return config.GroupVersion