1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

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 <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-05-19 16:17:42 -04:00
parent 518808f254
commit 0044491478

View File

@ -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;