Skip to content

Commit 3f02eae

Browse files
authored
Add C3D with local SSD, Z3, and custom N4 families (#358)
1 parent 2429aed commit 3f02eae

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

rules/utils.go

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,19 @@ var validMachineTypes = map[string]bool{
7979
"c3d-standard-360-lssd": true,
8080
"c3d-highmem-4": true,
8181
"c3d-highmem-8": true,
82+
"c3d-highmem-8-lssd": true,
8283
"c3d-highmem-16": true,
84+
"c3d-highmem-16-lssd": true,
8385
"c3d-highmem-30": true,
86+
"c3d-highmem-30-lssd": true,
8487
"c3d-highmem-60": true,
88+
"c3d-highmem-60-lssd": true,
8589
"c3d-highmem-90": true,
90+
"c3d-highmem-90-lssd": true,
8691
"c3d-highmem-180": true,
92+
"c3d-highmem-180-lssd": true,
8793
"c3d-highmem-360": true,
94+
"c3d-highmem-360-lssd": true,
8895
"c3d-highcpu-4": true,
8996
"c3d-highcpu-8": true,
9097
"c3d-highcpu-16": true,
@@ -210,14 +217,14 @@ var validMachineTypes = map[string]bool{
210217
"n2d-highmem-64": true,
211218
"n2d-highmem-80": true,
212219
"n2d-highmem-96": true,
213-
"n2d-highcpu-80": true,
214220
"n2d-highcpu-2": true,
215221
"n2d-highcpu-4": true,
216222
"n2d-highcpu-8": true,
217223
"n2d-highcpu-16": true,
218224
"n2d-highcpu-32": true,
219225
"n2d-highcpu-48": true,
220226
"n2d-highcpu-64": true,
227+
"n2d-highcpu-80": true,
221228
"n2d-highcpu-96": true,
222229
"n2d-highcpu-128": true,
223230
"n2d-highcpu-224": true,
@@ -297,13 +304,18 @@ var validMachineTypes = map[string]bool{
297304
"ct5lp-hightpu-1t": true,
298305
"ct5lp-hightpu-4t": true,
299306
"ct5lp-hightpu-8t": true,
307+
308+
// Z3
309+
"z3-highmem-88": true,
310+
"z3-highmem-176": true,
300311
}
301312

302313
func isCustomType(machineType string) bool {
303314
return strings.HasPrefix(machineType, "e2-custom-") ||
304315
strings.HasPrefix(machineType, "n2-custom-") ||
305316
strings.HasPrefix(machineType, "n2d-custom-") ||
306317
strings.HasPrefix(machineType, "n1-custom-") ||
318+
strings.HasPrefix(machineType, "n4-custom-") ||
307319
strings.HasPrefix(machineType, "custom-")
308320
}
309321

0 commit comments

Comments
 (0)