1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2020-06-15 13:36:31 +03:00
parent 56a321f7cd
commit 41c92fae86

View File

@ -10,7 +10,6 @@ import { Cluster, ClusterPreferences } from "./cluster"
import { helmCli } from "./helm-cli" import { helmCli } from "./helm-cli"
export class ShellSession extends EventEmitter { export class ShellSession extends EventEmitter {
static shellEnv: any
static shellEnvs: Map<string, any> = new Map() static shellEnvs: Map<string, any> = new Map()
protected websocket: WebSocket protected websocket: WebSocket
@ -82,8 +81,7 @@ export class ShellSession extends EventEmitter {
} }
protected async getCachedShellEnv() { protected async getCachedShellEnv() {
let env: any let env = ShellSession.shellEnvs.get(this.clusterId)
env = ShellSession.shellEnvs.get(this.clusterId)
if (!env) { if (!env) {
env = await this.getShellEnv() env = await this.getShellEnv()
ShellSession.shellEnvs.set(this.clusterId, env) ShellSession.shellEnvs.set(this.clusterId, env)