Increase maxBuffer size when getting helm release details

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2021-10-28 07:58:09 -04:00
1 parent 50d9b9b467
commit e0e517e763
1 file changed
+3 -1
+3 -1
View File
@@ -105,7 +105,9 @@ export async function getRelease(name: string, namespace: string, cluster: Clust
const helm = await helmCli.binaryPath();
const proxyKubeconfig = await cluster.getProxyKubeconfigPath();
const { stdout } = await promiseExec(`"${helm}" status ${name} --output json --namespace ${namespace} --kubeconfig ${proxyKubeconfig}`);
const { stdout } = await promiseExec(`"${helm}" status ${name} --output json --namespace ${namespace} --kubeconfig ${proxyKubeconfig}`, {
maxBuffer: 32 * 1024 * 1024 * 1024, // 32 MiB
});
const release = JSON.parse(stdout);
release.resources = await getResources(name, namespace, cluster);