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:
parent
873a165a60
commit
c3823b9d27
@ -51,11 +51,9 @@ export class PodsStore extends KubeObjectStore<Pod> {
|
|||||||
|
|
||||||
async loadKubeMetrics(namespace?: string) {
|
async loadKubeMetrics(namespace?: string) {
|
||||||
try {
|
try {
|
||||||
const metrics = await podMetricsApi.list({ namespace });
|
this.kubeMetrics.replace(await podMetricsApi.list({ namespace }));
|
||||||
|
|
||||||
this.kubeMetrics.replace(metrics);
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("loadKubeMetrics failed", error);
|
console.warn("loadKubeMetrics failed", error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user