diff --git a/pkg/gce-pd-csi-driver/node.go b/pkg/gce-pd-csi-driver/node.go index 994547e0e..cb430355c 100644 --- a/pkg/gce-pd-csi-driver/node.go +++ b/pkg/gce-pd-csi-driver/node.go @@ -848,7 +848,7 @@ func (ns *GCENodeServer) GetVolumeLimits(ctx context.Context) (int64, error) { } // Process gen4 machine attach limits - gen4MachineTypesPrefix := []string{"c4a-", "c4-", "n4-"} + gen4MachineTypesPrefix := []string{"c4a-", "c4-", "n4-", "c4d-"} for _, gen4Prefix := range gen4MachineTypesPrefix { if strings.HasPrefix(machineType, gen4Prefix) { machineTypeSlice := strings.Split(machineType, "-") diff --git a/pkg/gce-pd-csi-driver/node_test.go b/pkg/gce-pd-csi-driver/node_test.go index 6e64b0ce5..4d2883ee8 100644 --- a/pkg/gce-pd-csi-driver/node_test.go +++ b/pkg/gce-pd-csi-driver/node_test.go @@ -340,6 +340,11 @@ func TestNodeGetVolumeLimits(t *testing.T) { machineType: "c4a-standard-32-lssd", expVolumeLimit: 49, }, + { + name: "c4d-standard-32", + machineType: "c4d-standard-32", + expVolumeLimit: 49, + }, } for _, tc := range testCases {