DataVolume [datavolumes.cdi.kubevirt.io/v1beta1]

Description
DataVolume is an abstraction on top of PersistentVolumeClaims to allow easy population of those PersistentVolumeClaims with relation to VirtualMachines
Type
object
Required
spec

Specification

PropertyTypeDescription
apiVersionstring

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

kindstring

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

metadataObjectMeta

ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

specobject

DataVolumeSpec defines the DataVolume type specification

statusobject

DataVolumeStatus contains the current status of the DataVolume

.spec

Description
DataVolumeSpec defines the DataVolume type specification
Type
object
PropertyTypeDescription
checkpointsarray

Checkpoints is a list of DataVolumeCheckpoints, representing stages in a multistage import.

contentTypestring

DataVolumeContentType options: "kubevirt", "archive"

finalCheckpointboolean

FinalCheckpoint indicates whether the current DataVolumeCheckpoint is the final checkpoint.

preallocationboolean

Preallocation controls whether storage for DataVolumes should be allocated in advance.

priorityClassNamestring

PriorityClassName for Importer, Cloner and Uploader pod

pvcobject

PVC is the PVC specification

sourceobject

Source is the src of the data for the requested DataVolume

sourceRefobject

SourceRef is an indirect reference to the source of data for the requested DataVolume

storageobject

Storage is the requested storage specification

.spec.checkpoints

Description
Checkpoints is a list of DataVolumeCheckpoints, representing stages in a multistage import.
Type
array

.spec.checkpoints[]

Description
DataVolumeCheckpoint defines a stage in a warm migration.
Type
object
Required
currentprevious
PropertyTypeDescription
currentstring

Current is the identifier of the snapshot created for this checkpoint.

previousstring

Previous is the identifier of the snapshot from the previous checkpoint.

.spec.pvc

Description
PVC is the PVC specification
Type
object
PropertyTypeDescription
accessModesarray

accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1

dataSourceobject

dataSource field can be used to specify either:

  • An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
  • An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource.
dataSourceRefobject

dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef:

  • While dataSource only allows two specific types of objects, dataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects.
  • While dataSource ignores disallowed values (dropping them), dataSourceRef preserves all values, and generates an error if a disallowed value is specified.
  • While dataSource only allows local objects, dataSourceRef allows objects in any namespaces. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
resourcesobject

resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources

selectorobject

selector is a label query over volumes to consider for binding.

storageClassNamestring

storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1

volumeAttributesClassNamestring

volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled.

volumeModestring

volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.

volumeNamestring

volumeName is the binding reference to the PersistentVolume backing this claim.

.spec.pvc.accessModes

Description
accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
Type
array

.spec.pvc.accessModes[]

Type
string

.spec.pvc.dataSource

Description
dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource.
Type
object
Required
kindname
PropertyTypeDescription
apiGroupstring

APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.

kindstring

Kind is the type of resource being referenced

namestring

Name is the name of resource being referenced

.spec.pvc.dataSourceRef

Description
dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While dataSource ignores disallowed values (dropping them), dataSourceRef preserves all values, and generates an error if a disallowed value is specified. * While dataSource only allows local objects, dataSourceRef allows objects in any namespaces. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
Type
object
Required
kindname
PropertyTypeDescription
apiGroupstring

APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.

kindstring

Kind is the type of resource being referenced

namestring

Name is the name of resource being referenced

namespacestring

Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.

.spec.pvc.resources

Description
resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
Type
object
PropertyTypeDescription
limitsobject

Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/

requestsobject

Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/

.spec.pvc.resources.limits

Description
Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
Type
object

.spec.pvc.resources.requests

Description
Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
Type
object

.spec.pvc.selector

Description
selector is a label query over volumes to consider for binding.
Type
object
PropertyTypeDescription
matchExpressionsarray

matchExpressions is a list of label selector requirements. The requirements are ANDed.

matchLabelsobject

matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.

.spec.pvc.selector.matchExpressions

Description
matchExpressions is a list of label selector requirements. The requirements are ANDed.
Type
array

.spec.pvc.selector.matchExpressions[]

Description
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
Type
object
Required
keyoperator
PropertyTypeDescription
keystring

key is the label key that the selector applies to.

operatorstring

operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.

valuesarray

values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.

.spec.pvc.selector.matchExpressions[].values

Description
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
Type
array

.spec.pvc.selector.matchExpressions[].values[]

Type
string

.spec.pvc.selector.matchLabels

Description
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
Type
object

.spec.source

Description
Source is the src of the data for the requested DataVolume
Type
object
PropertyTypeDescription
blankobject

DataVolumeBlankImage provides the parameters to create a new raw blank image for the PVC

gcsobject

DataVolumeSourceGCS provides the parameters to create a Data Volume from an GCS source

httpobject

DataVolumeSourceHTTP can be either an http or https endpoint, with an optional basic auth user name and password, and an optional configmap containing additional CAs

imageioobject

DataVolumeSourceImageIO provides the parameters to create a Data Volume from an imageio source

pvcobject

DataVolumeSourcePVC provides the parameters to create a Data Volume from an existing PVC

registryobject

DataVolumeSourceRegistry provides the parameters to create a Data Volume from an registry source

s3object

DataVolumeSourceS3 provides the parameters to create a Data Volume from an S3 source

snapshotobject

DataVolumeSourceSnapshot provides the parameters to create a Data Volume from an existing VolumeSnapshot

uploadobject

DataVolumeSourceUpload provides the parameters to create a Data Volume by uploading the source

vddkobject

DataVolumeSourceVDDK provides the parameters to create a Data Volume from a Vmware source

.spec.source.blank

Description
DataVolumeBlankImage provides the parameters to create a new raw blank image for the PVC
Type
object

.spec.source.gcs

Description
DataVolumeSourceGCS provides the parameters to create a Data Volume from an GCS source
Type
object
Required
url
PropertyTypeDescription
secretRefstring

SecretRef provides the secret reference needed to access the GCS source

urlstring

URL is the url of the GCS source

.spec.source.http

Description
DataVolumeSourceHTTP can be either an http or https endpoint, with an optional basic auth user name and password, and an optional configmap containing additional CAs
Type
object
Required
url
PropertyTypeDescription
certConfigMapstring

CertConfigMap is a configmap reference, containing a Certificate Authority(CA) public key, and a base64 encoded pem certificate

extraHeadersarray

ExtraHeaders is a list of strings containing extra headers to include with HTTP transfer requests

secretExtraHeadersarray

SecretExtraHeaders is a list of Secret references, each containing an extra HTTP header that may include sensitive information

secretRefstring

SecretRef A Secret reference, the secret should contain accessKeyId (user name) base64 encoded, and secretKey (password) also base64 encoded

urlstring

URL is the URL of the http(s) endpoint

.spec.source.http.extraHeaders

Description
ExtraHeaders is a list of strings containing extra headers to include with HTTP transfer requests
Type
array

.spec.source.http.extraHeaders[]

Type
string

.spec.source.http.secretExtraHeaders

Description
SecretExtraHeaders is a list of Secret references, each containing an extra HTTP header that may include sensitive information
Type
array

.spec.source.http.secretExtraHeaders[]

Type
string

.spec.source.imageio

Description
DataVolumeSourceImageIO provides the parameters to create a Data Volume from an imageio source
Type
object
Required
diskIdurl
PropertyTypeDescription
certConfigMapstring

CertConfigMap provides a reference to the CA cert

diskIdstring

DiskID provides id of a disk to be imported

insecureSkipVerifyboolean

InsecureSkipVerify is a flag to skip certificate verification

secretRefstring

SecretRef provides the secret reference needed to access the ovirt-engine

urlstring

URL is the URL of the ovirt-engine

.spec.source.pvc

Description
DataVolumeSourcePVC provides the parameters to create a Data Volume from an existing PVC
Type
object
Required
namenamespace
PropertyTypeDescription
namestring

The name of the source PVC

namespacestring

The namespace of the source PVC

.spec.source.registry

Description
DataVolumeSourceRegistry provides the parameters to create a Data Volume from an registry source
Type
object
PropertyTypeDescription
certConfigMapstring

CertConfigMap provides a reference to the Registry certs

imageStreamstring

ImageStream is the name of image stream for import

platformobject

Platform describes the minimum runtime requirements of the image

pullMethodstring

PullMethod can be either "pod" (default import), or "node" (node docker cache based import)

secretRefstring

SecretRef provides the secret reference needed to access the Registry source

urlstring

URL is the url of the registry source (starting with the scheme: docker, oci-archive)

.spec.source.registry.platform

Description
Platform describes the minimum runtime requirements of the image
Type
object
PropertyTypeDescription
architecturestring

Architecture specifies the image target CPU architecture

.spec.source.s3

Description
DataVolumeSourceS3 provides the parameters to create a Data Volume from an S3 source
Type
object
Required
url
PropertyTypeDescription
certConfigMapstring

CertConfigMap is a configmap reference, containing a Certificate Authority(CA) public key, and a base64 encoded pem certificate

secretRefstring

SecretRef provides the secret reference needed to access the S3 source

urlstring

URL is the url of the S3 source

.spec.source.snapshot

Description
DataVolumeSourceSnapshot provides the parameters to create a Data Volume from an existing VolumeSnapshot
Type
object
Required
namenamespace
PropertyTypeDescription
namestring

The name of the source VolumeSnapshot

namespacestring

The namespace of the source VolumeSnapshot

.spec.source.upload

Description
DataVolumeSourceUpload provides the parameters to create a Data Volume by uploading the source
Type
object

.spec.source.vddk

Description
DataVolumeSourceVDDK provides the parameters to create a Data Volume from a Vmware source
Type
object
PropertyTypeDescription
backingFilestring

BackingFile is the path to the virtual hard disk to migrate from vCenter/ESXi

extraArgsstring

ExtraArgs is a reference to a ConfigMap containing extra arguments to pass directly to the VDDK library

initImageURLstring

InitImageURL is an optional URL to an image containing an extracted VDDK library, overrides v2v-vmware config map

secretRefstring

SecretRef provides a reference to a secret containing the username and password needed to access the vCenter or ESXi host

thumbprintstring

Thumbprint is the certificate thumbprint of the vCenter or ESXi host

urlstring

URL is the URL of the vCenter or ESXi host with the VM to migrate

uuidstring

UUID is the UUID of the virtual machine that the backing file is attached to in vCenter/ESXi

.spec.sourceRef

Description
SourceRef is an indirect reference to the source of data for the requested DataVolume
Type
object
Required
kindname
PropertyTypeDescription
kindstring

The kind of the source reference, currently only "DataSource" is supported

namestring

The name of the source reference

namespacestring

The namespace of the source reference, defaults to the DataVolume namespace

.spec.storage

Description
Storage is the requested storage specification
Type
object
PropertyTypeDescription
accessModesarray

AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1

dataSourceobject

This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field.

dataSourceRefobject

Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef:

  • While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects.
  • While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
resourcesobject

Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources

selectorobject

A label query over volumes to consider for binding.

storageClassNamestring

Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1

volumeModestring

volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.

volumeNamestring

VolumeName is the binding reference to the PersistentVolume backing this claim.

.spec.storage.accessModes

Description
AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
Type
array

.spec.storage.accessModes[]

Type
string

.spec.storage.dataSource

Description
This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field.
Type
object
Required
kindname
PropertyTypeDescription
apiGroupstring

APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.

kindstring

Kind is the type of resource being referenced

namestring

Name is the name of resource being referenced

.spec.storage.dataSourceRef

Description
Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
Type
object
Required
kindname
PropertyTypeDescription
apiGroupstring

APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.

kindstring

Kind is the type of resource being referenced

namestring

Name is the name of resource being referenced

namespacestring

Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.

.spec.storage.resources

Description
Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
Type
object
PropertyTypeDescription
limitsobject

Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/

requestsobject

Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/

.spec.storage.resources.limits

Description
Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
Type
object

.spec.storage.resources.requests

Description
Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
Type
object

.spec.storage.selector

Description
A label query over volumes to consider for binding.
Type
object
PropertyTypeDescription
matchExpressionsarray

matchExpressions is a list of label selector requirements. The requirements are ANDed.

matchLabelsobject

matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.

.spec.storage.selector.matchExpressions

Description
matchExpressions is a list of label selector requirements. The requirements are ANDed.
Type
array

.spec.storage.selector.matchExpressions[]

Description
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
Type
object
Required
keyoperator
PropertyTypeDescription
keystring

key is the label key that the selector applies to.

operatorstring

operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.

valuesarray

values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.

.spec.storage.selector.matchExpressions[].values

Description
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
Type
array

.spec.storage.selector.matchExpressions[].values[]

Type
string

.spec.storage.selector.matchLabels

Description
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
Type
object

.status

Description
DataVolumeStatus contains the current status of the DataVolume
Type
object
PropertyTypeDescription
claimNamestring

ClaimName is the name of the underlying PVC used by the DataVolume.

conditionsarray
phasestring

Phase is the current phase of the data volume

progressstring

DataVolumeProgress is the current progress of the DataVolume transfer operation. Value between 0 and 100 inclusive, N/A if not available

restartCountinteger

RestartCount is the number of times the pod populating the DataVolume has restarted

.status.conditions

Type
array

.status.conditions[]

Description
DataVolumeCondition represents the state of a data volume condition.
Type
object
Required
statustype
PropertyTypeDescription
lastHeartbeatTimestring
lastTransitionTimestring
messagestring
reasonstring
statusstring
typestring

DataVolumeConditionType is the string representation of known condition types

API Endpoints

The following API endpoints are available:

  • /apis/cdi.kubevirt.io/v1beta1/namespaces/{namespace}/datavolumes
    • DELETE: delete collection of DataVolume
    • GET: list objects of kind DataVolume
    • POST: create a new DataVolume
  • /apis/cdi.kubevirt.io/v1beta1/namespaces/{namespace}/datavolumes/{name}
    • DELETE: delete the specified DataVolume
    • GET: read the specified DataVolume
    • PATCH: partially update the specified DataVolume
    • PUT: replace the specified DataVolume
  • /apis/cdi.kubevirt.io/v1beta1/namespaces/{namespace}/datavolumes/{name}/status
    • GET: read status of the specified DataVolume
    • PATCH: partially update status of the specified DataVolume
    • PUT: replace status of the specified DataVolume

/apis/cdi.kubevirt.io/v1beta1/namespaces/{namespace}/datavolumes

HTTP method
DELETE
Description
delete collection of DataVolume
HTTP responses
HTTP codeResponse body
200 - OKStatus schema
401 - UnauthorizedEmpty
HTTP method
GET
Description
list objects of kind DataVolume
HTTP responses
HTTP codeResponse body
200 - OKDataVolumeList schema
401 - UnauthorizedEmpty
HTTP method
POST
Description
create a new DataVolume
Query parameters
ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
Body parameters
ParameterTypeDescription
bodyDataVolume schemaapplication/json formatted
HTTP responses
HTTP codeResponse body
200 - OKDataVolume schema
201 - CreatedDataVolume schema
202 - AcceptedDataVolume schema
401 - UnauthorizedEmpty

/apis/cdi.kubevirt.io/v1beta1/namespaces/{namespace}/datavolumes/{name}

HTTP method
DELETE
Description
delete the specified DataVolume
Query parameters
ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
HTTP responses
HTTP codeResponse body
200 - OKStatus schema
202 - AcceptedStatus schema
401 - UnauthorizedEmpty
HTTP method
GET
Description
read the specified DataVolume
HTTP responses
HTTP codeResponse body
200 - OKDataVolume schema
401 - UnauthorizedEmpty
HTTP method
PATCH
Description
partially update the specified DataVolume
Query parameters
ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
HTTP responses
HTTP codeResponse body
200 - OKDataVolume schema
401 - UnauthorizedEmpty
HTTP method
PUT
Description
replace the specified DataVolume
Query parameters
ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
Body parameters
ParameterTypeDescription
bodyDataVolume schemaapplication/json formatted
HTTP responses
HTTP codeResponse body
200 - OKDataVolume schema
201 - CreatedDataVolume schema
401 - UnauthorizedEmpty

/apis/cdi.kubevirt.io/v1beta1/namespaces/{namespace}/datavolumes/{name}/status

HTTP method
GET
Description
read status of the specified DataVolume
HTTP responses
HTTP codeResponse body
200 - OKDataVolume schema
401 - UnauthorizedEmpty
HTTP method
PATCH
Description
partially update status of the specified DataVolume
Query parameters
ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
HTTP responses
HTTP codeResponse body
200 - OKDataVolume schema
401 - UnauthorizedEmpty
HTTP method
PUT
Description
replace status of the specified DataVolume
Query parameters
ParameterTypeDescription
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
Body parameters
ParameterTypeDescription
bodyDataVolume schemaapplication/json formatted
HTTP responses
HTTP codeResponse body
200 - OKDataVolume schema
201 - CreatedDataVolume schema
401 - UnauthorizedEmpty