mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-23 18:40:53 +00:00
Fixing the check to determine if the resource is namespaced
This commit is contained in:
parent
067b1323d3
commit
96044b7f43
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user