Skip to content

Commit 2792295

Browse files
authored
add a2 variants and information about machine type documentation (#125)
1 parent e73e008 commit 2792295

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

rules/utils.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
)
1010

1111
var validMachineTypes = map[string]bool{
12+
// Regular machine types: https://cloud.google.com/compute/docs/machine-types
1213
"e2-standard-2": true,
1314
"e2-standard-4": true,
1415
"e2-standard-8": true,
@@ -121,6 +122,13 @@ var validMachineTypes = map[string]bool{
121122
"e2-medium": true,
122123
"f1-micro": true,
123124
"g1-small": true,
125+
126+
// A100 machine types: https://cloud.google.com/compute/docs/gpus
127+
"a2-highgpu-1g": true,
128+
"a2-highgpu-2g": true,
129+
"a2-highgpu-4g": true,
130+
"a2-highgpu-8g": true,
131+
"a2-megagpu-16g": true,
124132
}
125133

126134
func isCustomType(machineType string) bool {

0 commit comments

Comments
 (0)