mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
56a321f7cd
commit
41c92fae86
1 file changed
+1
-3
@@ -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)
|
||||||
|
|||||||
Reference in new issue
Block a user