mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
transform ConnectMethods to kube verbs
This commit is contained in:
parent
05f073dc28
commit
8c820ae303
@ -805,6 +805,13 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag
|
|||||||
}
|
}
|
||||||
addParams(route, action.Params)
|
addParams(route, action.Params)
|
||||||
routes = append(routes, route)
|
routes = append(routes, route)
|
||||||
|
|
||||||
|
// transform ConnectMethods to kube verbs
|
||||||
|
if kubeVerb, found := toDiscoveryKubeVerb[method]; found {
|
||||||
|
if len(kubeVerb) != 0 {
|
||||||
|
kubeVerbs[kubeVerb] = struct{}{}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("unrecognized action verb: %s", action.Verb)
|
return nil, fmt.Errorf("unrecognized action verb: %s", action.Verb)
|
||||||
|
Loading…
Reference in New Issue
Block a user