From eae9f46ac4404c9ba4059702b1e844c3095d8fa1 Mon Sep 17 00:00:00 2001 From: Kanagaraj M Date: Tue, 4 Jan 2022 08:37:02 +0530 Subject: [PATCH] add gcp marketplace server configurations (#1361) --- .../AddTenant/Steps/TenantResources/utils.tsx | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/portal-ui/src/screens/Console/Tenants/AddTenant/Steps/TenantResources/utils.tsx b/portal-ui/src/screens/Console/Tenants/AddTenant/Steps/TenantResources/utils.tsx index 7a019c646..0ea6ce144 100644 --- a/portal-ui/src/screens/Console/Tenants/AddTenant/Steps/TenantResources/utils.tsx +++ b/portal-ui/src/screens/Console/Tenants/AddTenant/Steps/TenantResources/utils.tsx @@ -21,7 +21,7 @@ import TenantSizeMK from "./TenantSizeMK"; export enum IMkEnvs { "aws", "azure", - "gcs", + "gcp", "default", undefined, } @@ -54,7 +54,7 @@ export const AzureStorageTypes: Opts[] = [ export const resourcesConfigurations = { "mp-mode-aws": IMkEnvs.aws, "mp-mode-azure": IMkEnvs.azure, - "mp-mode-gcs": IMkEnvs.gcs, + "mp-mode-gcp": IMkEnvs.gcp, }; export const AWSConfigurations: IntegrationConfiguration[] = [ @@ -119,6 +119,18 @@ export const AzureConfigurations: IntegrationConfiguration[] = [ }, ]; +export const GCPStorageTypes: Opts[] = [{ label: "SSD", value: "ssd" }]; + +export const GCPConfigurations: IntegrationConfiguration[] = [ + { + typeSelection: "ssd", + storageClass: "local-ssd", + CPU: 32, + memory: 128, + driveSize: { driveSize: "368", sizeUnit: "Gi" }, + drivesPerServer: 24, + }, +]; export const mkPanelConfigurations = { [IMkEnvs.aws]: { @@ -133,7 +145,12 @@ export const mkPanelConfigurations = { configurations: AzureConfigurations, sizingComponent: , }, - [IMkEnvs.gcs]: {}, + [IMkEnvs.gcp]: { + variantSelectorLabel: "Storage Type", + variantSelectorValues: GCPStorageTypes, + configurations: GCPConfigurations, + sizingComponent: , + }, [IMkEnvs.default]: {}, [IMkEnvs.undefined]: {}, };