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 {
39
39
max int64
40
40
value int64
41
41
}{
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 },
48
48
}
Original file line number Diff line number Diff line change @@ -93,9 +93,9 @@ const (
93
93
volumeLimitSmall int64 = 15
94
94
volumeLimitBig int64 = 127
95
95
// doc https://cloud.google.com/compute/docs/memory-optimized-machines#x4_disks
96
- x4HyperdiskLimit int64 = 40
96
+ x4HyperdiskLimit int64 = 39
97
97
// doc https://cloud.google.com/compute/docs/accelerator-optimized-machines#a4-disks
98
- a4HyperdiskLimit int64 = 128
98
+ a4HyperdiskLimit int64 = 127
99
99
defaultLinuxFsType = "ext4"
100
100
defaultWindowsFsType = "ntfs"
101
101
fsTypeExt3 = "ext3"
Original file line number Diff line number Diff line change @@ -257,27 +257,27 @@ func TestNodeGetVolumeLimits(t *testing.T) {
257
257
{
258
258
name : "c4-standard-192" ,
259
259
machineType : "c4-standard-192" ,
260
- expVolumeLimit : 128 ,
260
+ expVolumeLimit : 127 ,
261
261
},
262
262
{
263
263
name : "c4-standard-48" ,
264
264
machineType : "c4-standard-48" ,
265
- expVolumeLimit : 64 ,
265
+ expVolumeLimit : 63 ,
266
266
},
267
267
{
268
268
name : "c4a-standard-4" ,
269
269
machineType : "c4a-standard-4" ,
270
- expVolumeLimit : 16 ,
270
+ expVolumeLimit : 15 ,
271
271
},
272
272
{
273
273
name : "n4-standard-16" ,
274
274
machineType : "n4-standard-16" ,
275
- expVolumeLimit : 32 ,
275
+ expVolumeLimit : 31 ,
276
276
},
277
277
{
278
278
name : "n4-highcpu-4" ,
279
279
machineType : "n4-highcpu-4" ,
280
- expVolumeLimit : 16 ,
280
+ expVolumeLimit : 15 ,
281
281
},
282
282
{
283
283
name : "invalid gen4 machine type" ,
You can’t perform that action at this time.
0 commit comments