diff --git a/pkg/disk/nodeserver.go b/pkg/disk/nodeserver.go index ba5d7fdbb..0b23b6bf0 100644 --- a/pkg/disk/nodeserver.go +++ b/pkg/disk/nodeserver.go @@ -100,8 +100,6 @@ const ( KMSKeyID = "alibabacloud.com/kms-key-id" // DefaultMaxVolumesPerNode define default max ebs one node DefaultMaxVolumesPerNode = 15 - // MaxVolumesPerNodeLimit define limit max ebs one node - MaxVolumesPerNodeLimit = 64 // NOUUID is xfs fs mount opts NOUUID = "nouuid" // NodeMultiZoneEnable Enable node multi-zone mode @@ -160,8 +158,8 @@ func parseVolumeCountEnv() (int, error) { if err != nil { return 0, fmt.Errorf("MAX_VOLUMES_PERNODE must be int, but get: %s", volumeNum) } - if num < 0 || num > MaxVolumesPerNodeLimit { - return 0, fmt.Errorf("MAX_VOLUMES_PERNODE must between 0-%d, but get: %s", MaxVolumesPerNodeLimit, volumeNum) + if num < 0 { + return 0, fmt.Errorf("MAX_VOLUMES_PERNODE must be greater than 0, but got: %s", volumeNum) } klog.Infof("MAX_VOLUMES_PERNODE is set to (from env): %d", num) return num, nil