mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-20 08:03:53 +08:00
fix(region): optional local system disk size
This commit is contained in:
@@ -90,8 +90,8 @@ func (self *SKVMGuestDriver) GetInstanceCapability() cloudprovider.SInstanceCapa
|
||||
SysDisk: []cloudprovider.StorageInfo{
|
||||
{
|
||||
StorageType: api.STORAGE_LOCAL,
|
||||
MinSizeGb: 30,
|
||||
MaxSizeGb: 2048,
|
||||
MinSizeGb: options.Options.LocalSysDiskMinSizeGB,
|
||||
MaxSizeGb: options.Options.LocalSysDiskMaxSizeGB,
|
||||
StepSizeGb: 1,
|
||||
Resizable: true,
|
||||
},
|
||||
|
||||
@@ -205,6 +205,9 @@ type ComputeOptions struct {
|
||||
LocalDataDiskMinSizeGB int `help:"Data disk min size when using local storage" default:"10"`
|
||||
LocalDataDiskMaxSizeGB int `help:"Data disk max size when using local storage" default:"40960"`
|
||||
|
||||
LocalSysDiskMinSizeGB int `help:"System disk min size when using local storage" default:"30"`
|
||||
LocalSysDiskMaxSizeGB int `help:"System disk max size when using local storage" default:"2048"`
|
||||
|
||||
SkuMaxMemSize int64 `help:"Sku max memory size GB" default:"1024"`
|
||||
SkuMaxCpuCount int64 `help:"Sku max cpu count" default:"256"`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user