mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix PVC metric support
Signed-off-by: Marc Bachmann <marc.brookman@gmail.com>
This commit is contained in:
parent
4b13e30227
commit
760fde4559
@ -31,11 +31,13 @@ export class PersistentVolumeClaimsApi extends KubeApi<PersistentVolumeClaim> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getMetricsForPvc(pvc: PersistentVolumeClaim): Promise<IPvcMetrics> {
|
export function getMetricsForPvc(pvc: PersistentVolumeClaim): Promise<IPvcMetrics> {
|
||||||
|
const opts = { category: "pvc", pvc: pvc.getName(), namespace: pvc.getNs() };
|
||||||
|
|
||||||
return metricsApi.getMetrics({
|
return metricsApi.getMetrics({
|
||||||
diskUsage: { category: "pvc", pvc: pvc.getName() },
|
diskUsage: opts,
|
||||||
diskCapacity: { category: "pvc", pvc: pvc.getName() }
|
diskCapacity: opts
|
||||||
}, {
|
}, {
|
||||||
namespace: pvc.getNs()
|
namespace: opts.namespace
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user