diff --git a/pkg/endpoints/installer.go b/pkg/endpoints/installer.go index 9f790b727..3257bf59f 100644 --- a/pkg/endpoints/installer.go +++ b/pkg/endpoints/installer.go @@ -594,6 +594,9 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag requestScope = "resource" operationSuffix = operationSuffix + "WithPath" } + if strings.Index(action.Path, "/{name}") != -1 || action.Verb == "POST" { + requestScope = "resource" + } if action.AllNamespaces { requestScope = "cluster" operationSuffix = operationSuffix + "ForAllNamespaces"