Skip to content

Commit

Permalink
fix(region): resize cloud_auto disk (#22059)
Browse files Browse the repository at this point in the history
  • Loading branch information
ioito authored Feb 5, 2025
1 parent fb5dd09 commit 9938a73
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/compute/hostdrivers/aliyun.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ func (self *SAliyunHostDriver) ValidateDiskSize(storage *models.SStorage, sizeGb
case api.STORAGE_PUBLIC_CLOUD:
minGB = 5
maxGB = 2000
case api.STORAGE_CLOUD_AUTO:
minGB = 1
maxGB = 65536
case api.STORAGE_CLOUD_ESSD_ENTRY:
minGB = 10
maxGB = 32768
default:
return fmt.Errorf("Not support resize %s disk", storage.StorageType)
}
Expand Down

0 comments on commit 9938a73

Please sign in to comment.