Skip to content

Commit

Permalink
Merge pull request #1239 from huww98/rm-MaxVolumesPerNodeLimit
Browse files Browse the repository at this point in the history
disk remove MaxVolumesPerNodeLimit
  • Loading branch information
k8s-ci-robot authored Dec 19, 2024
2 parents aeb48bd + addabca commit 78d4576
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/disk/nodeserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 78d4576

Please sign in to comment.