Skip to content

Commit f336b5a

Browse files
committed
Make custom-* valid custom type
custom-* is also valid custom type. It's is the same as n1-custom-* See https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type#create
1 parent 8970f29 commit f336b5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rules/utils.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,5 +121,6 @@ func isCustomType(machineType string) bool {
121121
return strings.HasPrefix(machineType, "e2-custom-") ||
122122
strings.HasPrefix(machineType, "n2-custom-") ||
123123
strings.HasPrefix(machineType, "n2d-custom-") ||
124-
strings.HasPrefix(machineType, "n1-custom-")
124+
strings.HasPrefix(machineType, "n1-custom-") ||
125+
strings.HasPrefix(machineType, "custom-")
125126
}

0 commit comments

Comments
 (0)