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

Reset Prometheus metrics provider on disconnect

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala 2022-09-01 16:02:12 +03:00
parent 37318cab4e
commit 2e5582e8d8

View File

@ -207,6 +207,8 @@ export class ContextHandler implements ClusterContextHandler {
}
stopServer() {
this.prometheus = undefined;
this.prometheusProvider = undefined;
this.kubeAuthProxy?.exit();
this.kubeAuthProxy = undefined;
this.apiTarget = undefined;