diff --git a/pkg/harvester/edit/harvesterhci.io.volume.vue b/pkg/harvester/edit/harvesterhci.io.volume.vue index 5c8c41967ee..0d54c5151dc 100644 --- a/pkg/harvester/edit/harvesterhci.io.volume.vue +++ b/pkg/harvester/edit/harvesterhci.io.volume.vue @@ -234,7 +234,14 @@ export default { ...this.value.metadata.annotations, [HCI_ANNOTATIONS.IMAGE_ID]: this.imageId }; - storageClassName = images?.find(image => this.imageId === image.id)?.storageClassName; + const imageResource = images?.find(image => this.imageId === image.id); + const imageSize = Math.max(imageResource?.status?.size, imageResource?.status?.virtualSize); + + if (imageSize) { + this.storage = `${ Math.ceil(imageSize / 1024 / 1024 / 1024) }Gi`; + } + + storageClassName = imageResource?.storageClassName; } else { imageAnnotations = { ...this.value.metadata.annotations }; }