Commit 96044b7f authored by nikhiljindal's avatar nikhiljindal

Fixing the check to determine if the resource is namespaced

parent 067b1323
......@@ -464,7 +464,7 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag
for _, action := range actions {
reqScope.Namer = action.Namer
namespaced := ""
if strings.Contains(action.Path, scope.ArgumentName()) {
if apiResource.Namespaced {
namespaced = "Namespaced"
}
switch action.Verb {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment