Skip to content

Commit eae9f46

Browse files
authored
add gcp marketplace server configurations (#1361)
1 parent 68ffd08 commit eae9f46

File tree

1 file changed

+20
-3
lines changed
  • portal-ui/src/screens/Console/Tenants/AddTenant/Steps/TenantResources

1 file changed

+20
-3
lines changed

portal-ui/src/screens/Console/Tenants/AddTenant/Steps/TenantResources/utils.tsx

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import TenantSizeMK from "./TenantSizeMK";
2121
export enum IMkEnvs {
2222
"aws",
2323
"azure",
24-
"gcs",
24+
"gcp",
2525
"default",
2626
undefined,
2727
}
@@ -54,7 +54,7 @@ export const AzureStorageTypes: Opts[] = [
5454
export const resourcesConfigurations = {
5555
"mp-mode-aws": IMkEnvs.aws,
5656
"mp-mode-azure": IMkEnvs.azure,
57-
"mp-mode-gcs": IMkEnvs.gcs,
57+
"mp-mode-gcp": IMkEnvs.gcp,
5858
};
5959

6060
export const AWSConfigurations: IntegrationConfiguration[] = [
@@ -119,6 +119,18 @@ export const AzureConfigurations: IntegrationConfiguration[] = [
119119
},
120120
];
121121

122+
export const GCPStorageTypes: Opts[] = [{ label: "SSD", value: "ssd" }];
123+
124+
export const GCPConfigurations: IntegrationConfiguration[] = [
125+
{
126+
typeSelection: "ssd",
127+
storageClass: "local-ssd",
128+
CPU: 32,
129+
memory: 128,
130+
driveSize: { driveSize: "368", sizeUnit: "Gi" },
131+
drivesPerServer: 24,
132+
},
133+
];
122134

123135
export const mkPanelConfigurations = {
124136
[IMkEnvs.aws]: {
@@ -133,7 +145,12 @@ export const mkPanelConfigurations = {
133145
configurations: AzureConfigurations,
134146
sizingComponent: <TenantSizeMK formToRender={IMkEnvs.azure} />,
135147
},
136-
[IMkEnvs.gcs]: {},
148+
[IMkEnvs.gcp]: {
149+
variantSelectorLabel: "Storage Type",
150+
variantSelectorValues: GCPStorageTypes,
151+
configurations: GCPConfigurations,
152+
sizingComponent: <TenantSizeMK formToRender={IMkEnvs.gcp} />,
153+
},
137154
[IMkEnvs.default]: {},
138155
[IMkEnvs.undefined]: {},
139156
};

0 commit comments

Comments
 (0)