fix: align all memory / storage / quota units to Gi/Mi

Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
Andy Lee
2025-02-28 22:57:54 +08:00
parent ff4a865c55
commit 8f76d5ad30
16 changed files with 51 additions and 44 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ export function vmDisks(spec, getters, errors, validatorArgs, displayKey, value)
}
if (typeValue?.spec?.resources?.requests?.storage && !/^([0-9][0-9]{0,8})[a-zA-Z]+$/.test(typeValue?.spec?.resources?.requests?.storage)) {
const message = getters['i18n/t']('harvester.validation.generic.maximumSize', { max: '999999999 GiB' });
const message = getters['i18n/t']('harvester.validation.generic.maximumSize', { max: '999999999 Gi' });
errors.push(getters['i18n/t']('harvester.validation.generic.tabError', { prefix, message }));
}
+1 -1
View File
@@ -6,7 +6,7 @@ export function volumeSize(size, getters, errors, validatorArgs, displayKey, val
}
if (size && !/^([0-9][0-9]{0,8})[a-zA-Z]+$/.test(size)) {
const message = getters['i18n/t']('harvester.validation.generic.maximumSize', { max: '999999999 GiB' });
const message = getters['i18n/t']('harvester.validation.generic.maximumSize', { max: '999999999 Gi' });
errors.push(message);
}