Increase maxBuffer size when getting helm release details (#4164)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-10-28 08:33:16 -04:00
1 parent b4d5e74d16
commit b32e841bd2
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);