Skip to content

Commit a75d2d9

Browse files
Change Attach Limit to Hyperdisk Balanced Only
1 parent 8aed19b commit a75d2d9

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

pkg/common/constants.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@ var Gen4MachineHyperdiskAttachLimitMap = []struct {
7070
max int64
7171
value int64
7272
}{
73-
{max: 4, value: 15},
74-
{max: 8, value: 23},
75-
{max: 16, value: 31},
76-
{max: 32, value: 49},
77-
{max: 64, value: 63},
78-
{max: 1024, value: 127},
73+
{max: 8, value: 15},
74+
{max: 1024, value: 31},
7975
}

pkg/gce-pd-csi-driver/node_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -271,12 +271,12 @@ func TestNodeGetVolumeLimits(t *testing.T) {
271271
{
272272
name: "c4-standard-192",
273273
machineType: "c4-standard-192",
274-
expVolumeLimit: 127,
274+
expVolumeLimit: 31,
275275
},
276276
{
277277
name: "c4-standard-48",
278278
machineType: "c4-standard-48",
279-
expVolumeLimit: 63,
279+
expVolumeLimit: 31,
280280
},
281281
{
282282
name: "c4a-standard-4",
@@ -302,7 +302,7 @@ func TestNodeGetVolumeLimits(t *testing.T) {
302302
{
303303
name: "n4-custom-8-12345-ext",
304304
machineType: "n4-custom-8-12345-ext",
305-
expVolumeLimit: 23,
305+
expVolumeLimit: 15,
306306
},
307307
{
308308
name: "n4-custom-16-12345",
@@ -312,7 +312,7 @@ func TestNodeGetVolumeLimits(t *testing.T) {
312312
{
313313
name: "invalid gen4 machine type",
314314
machineType: "n4-highcpu-4xyz",
315-
expVolumeLimit: volumeLimitBig,
315+
expVolumeLimit: 127,
316316
expectError: true,
317317
},
318318
{
@@ -338,12 +338,12 @@ func TestNodeGetVolumeLimits(t *testing.T) {
338338
{
339339
name: "c4a-standard-32-lssd",
340340
machineType: "c4a-standard-32-lssd",
341-
expVolumeLimit: 49,
341+
expVolumeLimit: 31,
342342
},
343343
{
344344
name: "c4d-standard-32",
345345
machineType: "c4d-standard-32",
346-
expVolumeLimit: 49,
346+
expVolumeLimit: 31,
347347
},
348348
}
349349

0 commit comments

Comments
 (0)