Reset Prometheus metrics provider on disconnect (#6158)

This commit is contained in:
Lauri Nevala authored and GitHub committed 2022-09-02 08:46:35 -04:00
1 parent 4ad47f93bc
commit ba49ede36c
1 file changed
+2
@@ -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;