Skip to content

Commit

Permalink
Merge branch 'master' of github.com:porter-dev/porter into neon-frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
Feroze Mohideen committed May 8, 2024
2 parents a6f3132 + 7139832 commit 4f86f52
Show file tree
Hide file tree
Showing 2 changed files with 136 additions and 0 deletions.
120 changes: 120 additions & 0 deletions dashboard/src/lib/clusters/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,126 @@ const SUPPORTED_GCP_MACHINE_TYPES: ClientMachineType[] = [
cpuCores: 44,
ramMegabytes: 90112,
},
{
name: "c3d-highcpu-4",
displayName: "c3d-highcpu-4",
supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 4,
ramMegabytes: 8000,
},
{
name: "c3d-highcpu-8",
displayName: "c3d-highcpu-8",
supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 8,
ramMegabytes: 16000,
},
{
name: "c3d-highcpu-16",
displayName: "c3d-highcpu-16",
supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 16,
ramMegabytes: 32000,
},
{
name: "c3d-highcpu-60",
displayName: "c3d-highcpu-60",
supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 60,
ramMegabytes: 118000,
},
{
name: "c3d-highcpu-90",
displayName: "c3d-highcpu-90",
supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 90,
ramMegabytes: 177000,
},
{
name: "c3d-highcpu-180",
displayName: "c3d-highcpu-180",
supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 180,
ramMegabytes: 354000,
},
{
name: "c3d-highcpu-360",
displayName: "c3d-highcpu-360",
supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 360,
ramMegabytes: 708000,
},
{
name: "c3d-standard-4",
displayName: "c3d-standard-4",
supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 4,
ramMegabytes: 16000,
},
{
name: "c3d-standard-8",
displayName: "c3d-standard-8",
supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 8,
ramMegabytes: 32000,
},
{
name: "c3d-standard-16",
displayName: "c3d-standard-16",
supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 16,
ramMegabytes: 64000,
},
{
name: "c3d-standard-30",
displayName: "c3d-standard-30",
supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 30,
ramMegabytes: 120000,
},
{
name: "c3d-standard-60",
displayName: "c3d-standard-60",
supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 60,
ramMegabytes: 240000,
},
{
name: "c3d-standard-90",
displayName: "c3d-standard-90",
supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 90,
ramMegabytes: 360000,
},
{
name: "c3d-standard-180",
displayName: "c3d-standard-180",
supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 180,
ramMegabytes: 720000,
},
{
name: "c3d-standard-360",
displayName: "c3d-standard-360",
supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 360,
ramMegabytes: 1440000,
},
{
name: "c3-highmem-4",
displayName: "c3-highmem-4",
Expand Down
16 changes: 16 additions & 0 deletions dashboard/src/lib/clusters/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,22 @@ const gcpMachineTypeValidator = z.enum([
"c3-highmem-8",
"c3-highmem-22",
"c3-highmem-44",
"c3d-highcpu-4",
"c3d-highcpu-8",
"c3d-highcpu-16",
"c3d-highcpu-30",
"c3d-highcpu-60",
"c3d-highcpu-90",
"c3d-highcpu-180",
"c3d-highcpu-360",
"c3d-standard-4",
"c3d-standard-8",
"c3d-standard-16",
"c3d-standard-30",
"c3d-standard-60",
"c3d-standard-90",
"c3d-standard-180",
"c3d-standard-360",
"n1-standard-1",
"n1-standard-2",
"n1-standard-4",
Expand Down

0 comments on commit 4f86f52

Please sign in to comment.