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

Fix metrics configuration via catalog

Fixes #4240

Signed-off-by: Jan Jansen <jan.jansen@gdata.de>
This commit is contained in:
Jan Jansen 2021-11-04 13:15:36 +01:00
parent a93108c103
commit d118d19c17

View File

@ -192,6 +192,11 @@ export class ClusterManager extends Singleton {
cluster.accessibleNamespaces = entity.spec.accessibleNamespaces;
}
if (entity.spec.metrics.source !== "local") {
cluster.preferences.prometheusProvider ||= { type: entity.spec.metrics?.prometheus?.type ?? "" };
cluster.preferences.prometheus = entity.spec.metrics.prometheus.address;
}
this.updateEntityFromCluster(cluster);
}
}