1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2020-12-30 17:42:37 +02:00
parent 72d4a1a411
commit 5079946869

View File

@ -25,6 +25,7 @@ export class PodsStore extends KubeObjectStore<Pod> {
async loadKubeMetrics(namespace?: string) { async loadKubeMetrics(namespace?: string) {
try { try {
const metrics = await podMetricsApi.list({ namespace }); const metrics = await podMetricsApi.list({ namespace });
this.kubeMetrics.replace(metrics); this.kubeMetrics.replace(metrics);
} catch (error) { } catch (error) {
console.error("loadKubeMetrics failed", error); console.error("loadKubeMetrics failed", error);