1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Failing to load KubeStateMetrics should only warn (#3394)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-07-15 13:52:21 -04:00 committed by GitHub
parent 873a165a60
commit c3823b9d27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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