File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ var Gen4MachineHyperdiskAttachLimitMap = []struct {
3939 max int64
4040 value int64
4141}{
42- {max : 4 , value : 16 },
43- {max : 8 , value : 24 },
44- {max : 16 , value : 32 },
45- {max : 32 , value : 48 },
46- {max : 64 , value : 64 },
47- {max : 1024 , value : 128 },
42+ {max : 4 , value : 15 },
43+ {max : 8 , value : 23 },
44+ {max : 16 , value : 31 },
45+ {max : 32 , value : 49 },
46+ {max : 64 , value : 63 },
47+ {max : 1024 , value : 127 },
4848}
Original file line number Diff line number Diff line change @@ -74,9 +74,9 @@ const (
7474 volumeLimitSmall int64 = 15
7575 volumeLimitBig int64 = 127
7676 // doc https://cloud.google.com/compute/docs/memory-optimized-machines#x4_disks
77- x4HyperdiskLimit int64 = 40
77+ x4HyperdiskLimit int64 = 39
7878 // doc https://cloud.google.com/compute/docs/accelerator-optimized-machines#a4-disks
79- a4HyperdiskLimit int64 = 128
79+ a4HyperdiskLimit int64 = 127
8080 defaultLinuxFsType = "ext4"
8181 defaultWindowsFsType = "ntfs"
8282 fsTypeExt3 = "ext3"
Original file line number Diff line number Diff line change @@ -239,27 +239,27 @@ func TestNodeGetVolumeLimits(t *testing.T) {
239239 {
240240 name : "c4-standard-192" ,
241241 machineType : "c4-standard-192" ,
242- expVolumeLimit : 128 ,
242+ expVolumeLimit : 127 ,
243243 },
244244 {
245245 name : "c4-standard-48" ,
246246 machineType : "c4-standard-48" ,
247- expVolumeLimit : 64 ,
247+ expVolumeLimit : 63 ,
248248 },
249249 {
250250 name : "c4a-standard-4" ,
251251 machineType : "c4a-standard-4" ,
252- expVolumeLimit : 16 ,
252+ expVolumeLimit : 15 ,
253253 },
254254 {
255255 name : "n4-standard-16" ,
256256 machineType : "n4-standard-16" ,
257- expVolumeLimit : 32 ,
257+ expVolumeLimit : 31 ,
258258 },
259259 {
260260 name : "n4-highcpu-4" ,
261261 machineType : "n4-highcpu-4" ,
262- expVolumeLimit : 16 ,
262+ expVolumeLimit : 15 ,
263263 },
264264 {
265265 name : "invalid gen4 machine type" ,
You can’t perform that action at this time.
0 commit comments