fix thirdparty API, now the config file of thirdpartyresource also need to group/version instead of version

This commit is contained in:
Chao Xu
2015-09-29 14:36:47 -07:00
parent a448b5e154
commit f4ff0f7683
6 changed files with 36 additions and 21 deletions

View File

@@ -30,10 +30,13 @@ import (
"k8s.io/kubernetes/pkg/util/sets"
)
const thirdpartyprefix = "/apis/"
const thirdpartyprefix = "/apis"
func makeThirdPartyPath(group string) string {
return thirdpartyprefix + group
if len(group) == 0 {
return thirdpartyprefix
}
return thirdpartyprefix + "/" + group
}
// resourceInterface is the interface for the parts of the master that know how to add/remove