From 0044491478646189826bfb870a923d16d36b2bdf Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Thu, 19 May 2022 16:17:42 -0400 Subject: [PATCH] Fix cluster connection failing after execHelm - The bug was that we were only assigning a reference to the global process.env instead of cloning it, so we were accidentally modifying the global Signed-off-by: Sebastian Malton --- src/main/helm/exec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/helm/exec.ts b/src/main/helm/exec.ts index 5d0305b2f6..25403d50f6 100644 --- a/src/main/helm/exec.ts +++ b/src/main/helm/exec.ts @@ -17,7 +17,7 @@ export async function execHelm(args: string[], options?: BaseEncodingOptions & E try { const opts = { ...options }; - opts.env ??= process.env; + opts.env ??= { ...process.env }; if (!opts.env.HTTPS_PROXY && UserStore.getInstance().httpsProxy) { opts.env.HTTPS_PROXY = UserStore.getInstance().httpsProxy;