Fix metrics reporting in kube-apiserver
Kubernetes-commit: 3d2a80643aec08be1e50193aeed08aad0d7f886b
This commit is contained in:
parent
968a41a8a7
commit
6fc1d642b6
|
@ -594,6 +594,9 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag
|
||||||
requestScope = "resource"
|
requestScope = "resource"
|
||||||
operationSuffix = operationSuffix + "WithPath"
|
operationSuffix = operationSuffix + "WithPath"
|
||||||
}
|
}
|
||||||
|
if strings.Index(action.Path, "/{name}") != -1 || action.Verb == "POST" {
|
||||||
|
requestScope = "resource"
|
||||||
|
}
|
||||||
if action.AllNamespaces {
|
if action.AllNamespaces {
|
||||||
requestScope = "cluster"
|
requestScope = "cluster"
|
||||||
operationSuffix = operationSuffix + "ForAllNamespaces"
|
operationSuffix = operationSuffix + "ForAllNamespaces"
|
||||||
|
|
Loading…
Reference in New Issue