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
.spec
- Description
- DataVolumeSpec defines the DataVolume type specification
- Type
object
.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
.spec.pvc
- Description
- PVC is the PVC specification
- Type
object
.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
.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
.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
.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
.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
.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
.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
.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
.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
.spec.source.pvc
- Description
- DataVolumeSourcePVC provides the parameters to create a Data Volume from an existing PVC
- Type
object- Required
namenamespace
.spec.source.registry
- Description
- DataVolumeSourceRegistry provides the parameters to create a Data Volume from an registry source
- Type
object
.spec.source.registry.platform
- Description
- Platform describes the minimum runtime requirements of the image
- Type
object
.spec.source.s3
- Description
- DataVolumeSourceS3 provides the parameters to create a Data Volume from an S3 source
- Type
object- Required
url
.spec.source.snapshot
- Description
- DataVolumeSourceSnapshot provides the parameters to create a Data Volume from an existing VolumeSnapshot
- Type
object- Required
namenamespace
.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
.spec.sourceRef
- Description
- SourceRef is an indirect reference to the source of data for the requested DataVolume
- Type
object- Required
kindname
.spec.storage
- Description
- Storage is the requested storage specification
- Type
object
.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
.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
.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
.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
.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
.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
.status.conditions
- Type
array
.status.conditions[]
- Description
- DataVolumeCondition represents the state of a data volume condition.
- Type
object- Required
statustype
API Endpoints
The following API endpoints are available:
/apis/cdi.kubevirt.io/v1beta1/namespaces/{namespace}/datavolumesDELETE: delete collection of DataVolumeGET: list objects of kind DataVolumePOST: create a new DataVolume
/apis/cdi.kubevirt.io/v1beta1/namespaces/{namespace}/datavolumes/{name}DELETE: delete the specified DataVolumeGET: read the specified DataVolumePATCH: partially update the specified DataVolumePUT: replace the specified DataVolume
/apis/cdi.kubevirt.io/v1beta1/namespaces/{namespace}/datavolumes/{name}/statusGET: read status of the specified DataVolumePATCH: partially update status of the specified DataVolumePUT: 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 method
GET- Description
- list objects of kind DataVolume
- HTTP responses
- HTTP method
POST- Description
- create a new DataVolume
- Query parameters
- Body parameters
- HTTP responses
/apis/cdi.kubevirt.io/v1beta1/namespaces/{namespace}/datavolumes/{name}
- HTTP method
DELETE- Description
- delete the specified DataVolume
- Query parameters
- HTTP responses
- HTTP method
GET- Description
- read the specified DataVolume
- HTTP responses
- HTTP method
PATCH- Description
- partially update the specified DataVolume
- Query parameters
- HTTP responses
- HTTP method
PUT- Description
- replace the specified DataVolume
- Query parameters
- Body parameters
- HTTP responses
/apis/cdi.kubevirt.io/v1beta1/namespaces/{namespace}/datavolumes/{name}/status
- HTTP method
GET- Description
- read status of the specified DataVolume
- HTTP responses
- HTTP method
PATCH- Description
- partially update status of the specified DataVolume
- Query parameters
- HTTP responses
- HTTP method
PUT- Description
- replace status of the specified DataVolume
- Query parameters
- Body parameters
- HTTP responses