Stop allowing unnamespaced POST for namespaced objects

This commit is contained in:
nikhiljindal
2015-07-14 12:43:42 -07:00
parent 0b14613361
commit 2f946b7aee
3 changed files with 3 additions and 454 deletions

View File

@@ -327,7 +327,6 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag
if !hasSubresource {
namer = scopeNaming{scope, a.group.Linker, gpath.Join(a.prefix, itemPath), true}
actions = appendIf(actions, action{"LIST", resource, params, namer}, isLister)
actions = appendIf(actions, action{"POST", resource, params, namer}, isCreater)
actions = appendIf(actions, action{"WATCHLIST", "watch/" + resource, params, namer}, allowWatchList)
}
break