mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-06 09:47:54 +00:00
Fix namespaced bug of node resource, node resource should be a non-namespaced resource as the resource namespace. By doing this fix, node resouce can be accessed as expected, as the issue explains. Closes issue:[#178](https://github.com/DirectXMan12/k8s-prometheus-adapter/issues/178)
This commit is contained in:
parent
ab6ada9081
commit
27c3bc1b88
3 changed files with 3 additions and 2 deletions
|
|
@ -177,7 +177,7 @@ func (r *resourceConverter) ResourcesForSeries(series prom.Series) ([]schema.Gro
|
|||
}
|
||||
}
|
||||
|
||||
if groupRes == nsGroupResource {
|
||||
if groupRes != nsGroupResource {
|
||||
namespaced = true
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue