Fixing the error in registering /v1 api

This commit is contained in:
nikhiljindal
2016-08-15 16:03:08 -07:00
parent 096dd4df50
commit 217d2f57e9
3 changed files with 13 additions and 3 deletions

View File

@@ -91,7 +91,9 @@ var userResources = []string{"svc"}
func newRESTMapper(externalVersions []unversioned.GroupVersion) meta.RESTMapper {
// the list of kinds that are scoped at the root of the api hierarchy
// if a kind is not enumerated here, it is assumed to have a namespace scope
rootScoped := sets.NewString()
rootScoped := sets.NewString(
"Namespace",
)
// these kinds should be excluded from the list of resources
ignoredKinds := sets.NewString(