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 committed 2022-05-19 16:20:26 -04:00
1 parent 518808f254
commit 0044491478
1 file changed
+1 -1
+1 -1
View File
@@ -17,7 +17,7 @@ export async function execHelm(args: string[], options?: BaseEncodingOptions & E
try { try {
const opts = { ...options }; const opts = { ...options };
opts.env ??= process.env; opts.env ??= { ...process.env };
if (!opts.env.HTTPS_PROXY && UserStore.getInstance().httpsProxy) { if (!opts.env.HTTPS_PROXY && UserStore.getInstance().httpsProxy) {
opts.env.HTTPS_PROXY = UserStore.getInstance().httpsProxy; opts.env.HTTPS_PROXY = UserStore.getInstance().httpsProxy;