From 46eae048d451a62e6f8557f0d489d7887c27eef0 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Thu, 8 Sep 2022 10:50:29 -0400 Subject: [PATCH] Increase maxBuffer size for execFileWithInput Signed-off-by: Sebastian Malton --- .../exec-file-with-input/exec-file-with-input.injectable.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/helm/helm-service/get-helm-release-resources/call-for-kube-resources-by-manifest/exec-file-with-input/exec-file-with-input.injectable.ts b/src/main/helm/helm-service/get-helm-release-resources/call-for-kube-resources-by-manifest/exec-file-with-input/exec-file-with-input.injectable.ts index fedcf8ccfe..888d9ced12 100644 --- a/src/main/helm/helm-service/get-helm-release-resources/call-for-kube-resources-by-manifest/exec-file-with-input/exec-file-with-input.injectable.ts +++ b/src/main/helm/helm-service/get-helm-release-resources/call-for-kube-resources-by-manifest/exec-file-with-input/exec-file-with-input.injectable.ts @@ -26,7 +26,9 @@ const execFileWithInputInjectable = getInjectable({ let execution: ChildProcess; try { - execution = execFile(filePath, commandArguments); + execution = execFile(filePath, commandArguments, { + maxBuffer: 8 * 1024 * 1024 * 1024, // 8 MiB + }); } catch (e) { resolve({ callWasSuccessful: false, error: e }); @@ -56,7 +58,7 @@ const execFileWithInputInjectable = getInjectable({ if (!isNumber(code)) { resolve({ callWasSuccessful: false, - error: "Exited without exit code", + error: `Exited via ${signal}`, }); return;