diff --git a/pkg/apiserver/api_installer.go b/pkg/apiserver/api_installer.go index 8e1fa24b887..cb020ff48c1 100644 --- a/pkg/apiserver/api_installer.go +++ b/pkg/apiserver/api_installer.go @@ -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 {