File tree 3 files changed +13
-13
lines changed
3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -63,10 +63,10 @@ var Gen4MachineHyperdiskAttachLimitMap = []struct {
63
63
max int64
64
64
value int64
65
65
}{
66
- {max : 4 , value : 16 },
67
- {max : 8 , value : 24 },
68
- {max : 16 , value : 32 },
69
- {max : 32 , value : 48 },
70
- {max : 64 , value : 64 },
71
- {max : 1024 , value : 128 },
66
+ {max : 4 , value : 15 },
67
+ {max : 8 , value : 23 },
68
+ {max : 16 , value : 31 },
69
+ {max : 32 , value : 49 },
70
+ {max : 64 , value : 63 },
71
+ {max : 1024 , value : 127 },
72
72
}
Original file line number Diff line number Diff line change @@ -99,9 +99,9 @@ const (
99
99
volumeLimitSmall int64 = 15
100
100
volumeLimitBig int64 = 127
101
101
// doc https://cloud.google.com/compute/docs/memory-optimized-machines#x4_disks
102
- x4HyperdiskLimit int64 = 40
102
+ x4HyperdiskLimit int64 = 39
103
103
// doc https://cloud.google.com/compute/docs/accelerator-optimized-machines#a4-disks
104
- a4HyperdiskLimit int64 = 128
104
+ a4HyperdiskLimit int64 = 127
105
105
defaultLinuxFsType = "ext4"
106
106
defaultWindowsFsType = "ntfs"
107
107
fsTypeExt3 = "ext3"
Original file line number Diff line number Diff line change @@ -259,27 +259,27 @@ func TestNodeGetVolumeLimits(t *testing.T) {
259
259
{
260
260
name : "c4-standard-192" ,
261
261
machineType : "c4-standard-192" ,
262
- expVolumeLimit : 128 ,
262
+ expVolumeLimit : 127 ,
263
263
},
264
264
{
265
265
name : "c4-standard-48" ,
266
266
machineType : "c4-standard-48" ,
267
- expVolumeLimit : 64 ,
267
+ expVolumeLimit : 63 ,
268
268
},
269
269
{
270
270
name : "c4a-standard-4" ,
271
271
machineType : "c4a-standard-4" ,
272
- expVolumeLimit : 16 ,
272
+ expVolumeLimit : 15 ,
273
273
},
274
274
{
275
275
name : "n4-standard-16" ,
276
276
machineType : "n4-standard-16" ,
277
- expVolumeLimit : 32 ,
277
+ expVolumeLimit : 31 ,
278
278
},
279
279
{
280
280
name : "n4-highcpu-4" ,
281
281
machineType : "n4-highcpu-4" ,
282
- expVolumeLimit : 16 ,
282
+ expVolumeLimit : 15 ,
283
283
},
284
284
{
285
285
name : "invalid gen4 machine type" ,
You can’t perform that action at this time.
0 commit comments