types: Add StorageOverProvisioningPercentage and StorageMinimalAvailablePercentage to Settings
@@ -18,6 +18,8 @@ const (
SettingNameBackupTarget = SettingName("backup-target")
SettingNameBackupTargetCredentialSecret = SettingName("backup-target-credential-secret")
SettingNameDefaultEngineImage = SettingName("default-engine-image")
+ SettingNameStorageOverProvisioningPercentage = SettingName("storage-over-provisioning-percentage")
+ SettingNameStorageMinimalAvailablePercentage = SettingName("storage-minimal-available-percentage")
)
type SettingCategory string
@@ -43,6 +45,8 @@ var (
SettingNameBackupTarget: SettingDefinitionBackupTarget,
SettingNameBackupTargetCredentialSecret: SettingDefinitionBackupTargetCredentialSecret,
SettingNameDefaultEngineImage: SettingDefinitionDefaultEngineImage,
+ SettingNameStorageOverProvisioningPercentage: SettingDefinitionStorageOverProvisioningPercentage,
+ SettingNameStorageMinimalAvailablePercentage: SettingDefinitionStorageMinimalAvailablePercentage,
}
SettingDefinitionBackupTarget = SettingDefinition{
@@ -71,4 +75,24 @@ var (
Required: true,
ReadOnly: true,
}
+
+ SettingDefinitionStorageOverProvisioningPercentage = SettingDefinition{
+ DisplayName: "Storage Over Provisioning Percentage",
+ Description: "The over-provisioning percentage defines how much storage can be allocated relative to the hard drive's capacity",
+ Category: SettingCategoryScheduling,
+ Type: SettingTypeInt,
+ Required: true,
+ ReadOnly: false,
+ Default: "500",
+ }
+
+ SettingDefinitionStorageMinimalAvailablePercentage = SettingDefinition{
+ DisplayName: "Storage Minimal Available Percentage",
+ Description: "If one disk's available capacity to it's maximum capacity in % is less than the minimal available percentage, the disk would become unschedulable until more space freed up.",
+ Category: SettingCategoryScheduling,
+ Type: SettingTypeInt,
+ Required: true,
+ ReadOnly: false,
+ Default: "10",
+ }
)
