mirror of https://github.com/k3s-io/k3s
Fixing the check to determine if the resource is namespaced
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