From 518157f9af8c1ada13632fba00c37d7052286f2d Mon Sep 17 00:00:00 2001 From: Kazuma Watanabe Date: Tue, 23 Jul 2024 13:24:55 +0000 Subject: [PATCH 1/3] Add C4 family --- rules/utils.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/rules/utils.go b/rules/utils.go index d6ba470..32b240b 100644 --- a/rules/utils.go +++ b/rules/utils.go @@ -100,6 +100,31 @@ var validMachineTypes = map[string]bool{ "c3d-highcpu-90": true, "c3d-highcpu-180": true, "c3d-highcpu-360": true, + // C4 + "c4-standard-2": true, + "c4-standard-4": true, + "c4-standard-8": true, + "c4-standard-16": true, + "c4-standard-32": true, + "c4-standard-48": true, + "c4-standard-96": true, + "c4-standard-192": true, + "c4-highcpu-2": true, + "c4-highcpu-4": true, + "c4-highcpu-8": true, + "c4-highcpu-16": true, + "c4-highcpu-32": true, + "c4-highcpu-48": true, + "c4-highcpu-96": true, + "c4-highcpu-192": true, + "c4-highmem-2": true, + "c4-highmem-4": true, + "c4-highmem-8": true, + "c4-highmem-16": true, + "c4-highmem-32": true, + "c4-highmem-48": true, + "c4-highmem-96": true, + "c4-highmem-192": true, // E2 "e2-micro": true, "e2-small": true, From 966b9d793b544f091456fd12ab85f7187c0800d7 Mon Sep 17 00:00:00 2001 From: Kazuma Watanabe Date: Tue, 23 Jul 2024 13:25:18 +0000 Subject: [PATCH 2/3] Add C3 metal machine types --- rules/utils.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rules/utils.go b/rules/utils.go index 32b240b..f8f99a6 100644 --- a/rules/utils.go +++ b/rules/utils.go @@ -50,18 +50,21 @@ var validMachineTypes = map[string]bool{ "c3-standard-88-lssd": true, "c3-standard-176": true, "c3-standard-176-lssd": true, + "c3-standard-192-metal": true, "c3-highmem-4": true, "c3-highmem-8": true, "c3-highmem-22": true, "c3-highmem-44": true, "c3-highmem-88": true, "c3-highmem-176": true, + "c3-highmem-192-metal": true, "c3-highcpu-4": true, "c3-highcpu-8": true, "c3-highcpu-22": true, "c3-highcpu-44": true, "c3-highcpu-88": true, "c3-highcpu-176": true, + "c3-highcpu-192-metal": true, "c3d-standard-4": true, "c3d-standard-8": true, "c3d-standard-8-lssd": true, From 0e702b3cda555b538d616c4a26db2a42136140c6 Mon Sep 17 00:00:00 2001 From: Kazuma Watanabe Date: Tue, 23 Jul 2024 13:39:53 +0000 Subject: [PATCH 3/3] Add X4 family --- rules/utils.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rules/utils.go b/rules/utils.go index f8f99a6..9ab6741 100644 --- a/rules/utils.go +++ b/rules/utils.go @@ -337,6 +337,11 @@ var validMachineTypes = map[string]bool{ // Z3 "z3-highmem-88": true, "z3-highmem-176": true, + + // X4 machine types: https://cloud.google.com/compute/docs/memory-optimized-machines#x4_machine_types + "x4-megamem-960-metal": true, + "x4-megamem-1440-metal": true, + "x4-megamem-1920-metal": true, } func isCustomType(machineType string) bool {