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 (#6158)

This commit is contained in:
Lauri Nevala 2022-09-02 15:46:35 +03:00 committed by GitHub
parent 4ad47f93bc
commit ba49ede36c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;