Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Take image virtual size into account when creating Volumes
This is a followup to #1104 When creating new volumes on the Volume screen in Harvester, the default size is empty, i.e. it's not pre-filled with anything at all. If the source is set to "VM image" we can now take the image virtual size and use that as the default size for the volume. Unlike when creating VMs (which always set the volume to a minimum of 10GiB regardless of virtual size, for consistency with earlier harvester versions), on this screen we just use the virtual size as-is. If the user wants to make it bigger, they can. Related issue: harvester/harvester#4905 Signed-off-by: Tim Serong <[email protected]> Co-authored-by: Volker Theile <[email protected]> (cherry picked from commit 3778552)
- Loading branch information