From 7cc7310f45fb010c75333d1ce2718c3e525a24d9 Mon Sep 17 00:00:00 2001 From: Anthony Date: Tue, 12 Nov 2024 01:09:10 +0800 Subject: [PATCH] Test Storage --- scripts/beforeInstall.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/beforeInstall.js b/scripts/beforeInstall.js index ccae4d2..bf4bd90 100644 --- a/scripts/beforeInstall.js +++ b/scripts/beforeInstall.js @@ -6,8 +6,15 @@ var wafAddon = getParam('settings.wafAddon', true); var resp = { result: 0, - ssl: !!jelastic.billing.account.GetQuotas('environment.jelasticssl.enabled').array[0].value, - nodes: [] + ssl: !!jelastic.billing.account.GetQuotas('environment.jelasticssl.enabled').array[0]?.value, + nodes: [{ + nodeType: "storage", + flexibleCloudlets: getParam('settings.st_flexibleCloudlets', 8), + fixedCloudlets: getParam('settings.st_fixedCloudlets', 1), + diskLimit: getParam('settings.st_diskLimit', 100), + nodeGroup: "storage", + displayName: "Storage" + }] }; resp.nodes.push({