mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
56a321f7cd
commit
41c92fae86
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user