# Functions
NewDataVolume Set up a new DataVolume with a random name, a namespace and an optional list of options.
PVC Options PVCWithStorageClass add the sc storage class name to the DV.
StorageWithAccessMode overrides the DV default access mode (ReadWriteOnce) with the accessMode parameter.
StorageWithBlockVolumeMode adds the PersistentVolumeBlock volume mode to the DV.
StorageWithFilesystemVolumeMode adds the PersistentVolumeBlock volume mode to the DV.
StorageWithReadWriteManyAccessMode set the DV access mode to ReadWriteMany.
Storage Options StorageWithStorageClass add the sc storage class name to the DV.
StorageWithVolumeMode adds the volume mode to the DV.
StorageWithVolumeSize overrides the default volume size (defaultVolumeSize), with the size parameter The size parameter must be in parsable valid quantity string.
WithBlankImageSource is a dvOption to add a blank DataVolumeSource to the DataVolume.
WithForceBindAnnotation adds the "cdi.kubevirt.io/storage.bind.immediate.requested" annotation to the DV, with the value of "true".
WithPVC is a dvOption to add a PVCOption spec to the DataVolume The function receives an optional list of pvcOption, to override the defaults * access mode of ReadWriteOnce * no volume mode.
WithPVCSource is a dvOption to add a DataVolumeSource to the DataVolume, with a PVC source.
WithRegistryURLSource is a dvOption to add a DataVolumeSource to the DataVolume, with a registry and a URL.
WithRegistryURLSourceAndPullMethod is a dvOption to add a DataVolumeSource to the DataVolume, with a registry and URL + pull method.
WithStorage is a dvOption to add a StorageOption spec to the DataVolume The function receives an optional list of StorageOption, to override the defaults
The default values are: * no storage class * access mode from the StorgeProfile * volume size of defaultVolumeSize * volume mode from the storageProfile.