DataVolume objects are custom resources that are provided by the Containerized Data Importer (CDI) project. Data volumes orchestrate import, clone, and upload operations that are associated with an underlying persistent volume claim (PVC). You can create a data volume as either a standalone resource or by using the
dataVolumeTemplate field in the virtual machine (VM) specification.
After a PVC is populated, the data volume that you used to create the PVC is no longer needed. OpenShift Virtualization enables automatic garbage collection of completed data volumes by default. Standalone data volumes, and data volumes created by using the
dataVolumeTemplate resource, are automatically garbage collected after completion.