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

描述
DataVolume is an abstraction on top of PersistentVolumeClaims to allow easy population of those PersistentVolumeClaims with relation to VirtualMachines
类型
object
必填
spec

规格

属性类型描述
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

描述
DataVolumeSpec defines the DataVolume type specification
类型
object
属性类型描述
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

描述
Checkpoints is a list of DataVolumeCheckpoints, representing stages in a multistage import.
类型
array

.spec.checkpoints[]

描述
DataVolumeCheckpoint defines a stage in a warm migration.
类型
object
必填
currentprevious
属性类型描述
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

描述
PVC is the PVC specification
类型
object
属性类型描述
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

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

.spec.pvc.accessModes[]

类型
string

.spec.pvc.dataSource

描述
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.
类型
object
必填
kindname
属性类型描述
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

描述
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.
类型
object
必填
kindname
属性类型描述
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

描述
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
类型
object
属性类型描述
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

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

.spec.pvc.resources.requests

描述
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/
类型
object

.spec.pvc.selector

描述
selector is a label query over volumes to consider for binding.
类型
object
属性类型描述
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

描述
matchExpressions is a list of label selector requirements. The requirements are ANDed.
类型
array

.spec.pvc.selector.matchExpressions[]

描述
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
类型
object
必填
keyoperator
属性类型描述
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

描述
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.
类型
array

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

类型
string

.spec.pvc.selector.matchLabels

描述
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.
类型
object

.spec.source

描述
Source is the src of the data for the requested DataVolume
类型
object
属性类型描述
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

描述
DataVolumeBlankImage provides the parameters to create a new raw blank image for the PVC
类型
object

.spec.source.gcs

描述
DataVolumeSourceGCS provides the parameters to create a Data Volume from an GCS source
类型
object
必填
url
属性类型描述
secretRefstring

SecretRef provides the secret reference needed to access the GCS source

urlstring

URL is the url of the GCS source

.spec.source.http

描述
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
类型
object
必填
url
属性类型描述
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

描述
ExtraHeaders is a list of strings containing extra headers to include with HTTP transfer requests
类型
array

.spec.source.http.extraHeaders[]

类型
string

.spec.source.http.secretExtraHeaders

描述
SecretExtraHeaders is a list of Secret references, each containing an extra HTTP header that may include sensitive information
类型
array

.spec.source.http.secretExtraHeaders[]

类型
string

.spec.source.imageio

描述
DataVolumeSourceImageIO provides the parameters to create a Data Volume from an imageio source
类型
object
必填
diskIdurl
属性类型描述
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

描述
DataVolumeSourcePVC provides the parameters to create a Data Volume from an existing PVC
类型
object
必填
namenamespace
属性类型描述
namestring

The name of the source PVC

namespacestring

The namespace of the source PVC

.spec.source.registry

描述
DataVolumeSourceRegistry provides the parameters to create a Data Volume from an registry source
类型
object
属性类型描述
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

描述
Platform describes the minimum runtime requirements of the image
类型
object
属性类型描述
architecturestring

Architecture specifies the image target CPU architecture

.spec.source.s3

描述
DataVolumeSourceS3 provides the parameters to create a Data Volume from an S3 source
类型
object
必填
url
属性类型描述
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

描述
DataVolumeSourceSnapshot provides the parameters to create a Data Volume from an existing VolumeSnapshot
类型
object
必填
namenamespace
属性类型描述
namestring

The name of the source VolumeSnapshot

namespacestring

The namespace of the source VolumeSnapshot

.spec.source.upload

描述
DataVolumeSourceUpload provides the parameters to create a Data Volume by uploading the source
类型
object

.spec.source.vddk

描述
DataVolumeSourceVDDK provides the parameters to create a Data Volume from a Vmware source
类型
object
属性类型描述
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

描述
SourceRef is an indirect reference to the source of data for the requested DataVolume
类型
object
必填
kindname
属性类型描述
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

描述
Storage is the requested storage specification
类型
object
属性类型描述
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

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

.spec.storage.accessModes[]

类型
string

.spec.storage.dataSource

描述
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.
类型
object
必填
kindname
属性类型描述
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

描述
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.
类型
object
必填
kindname
属性类型描述
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

描述
Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
类型
object
属性类型描述
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

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

.spec.storage.resources.requests

描述
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/
类型
object

.spec.storage.selector

描述
A label query over volumes to consider for binding.
类型
object
属性类型描述
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

描述
matchExpressions is a list of label selector requirements. The requirements are ANDed.
类型
array

.spec.storage.selector.matchExpressions[]

描述
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
类型
object
必填
keyoperator
属性类型描述
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

描述
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.
类型
array

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

类型
string

.spec.storage.selector.matchLabels

描述
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.
类型
object

.status

描述
DataVolumeStatus contains the current status of the DataVolume
类型
object
属性类型描述
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

类型
array

.status.conditions[]

描述
DataVolumeCondition represents the state of a data volume condition.
类型
object
必填
statustype
属性类型描述
lastHeartbeatTimestring
lastTransitionTimestring
messagestring
reasonstring
statusstring
typestring

DataVolumeConditionType is the string representation of known condition types

API 端点

可用的 API 端点如下:

  • /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 方法
DELETE
描述
delete collection of DataVolume
HTTP 响应
HTTP 状态码响应体
200 - OKStatus schema
401 - UnauthorizedEmpty
HTTP 方法
GET
描述
list objects of kind DataVolume
HTTP 响应
HTTP 状态码响应体
200 - OKDataVolumeList schema
401 - UnauthorizedEmpty
HTTP 方法
POST
描述
create a new DataVolume
查询参数
参数类型描述
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.
请求体参数
参数类型描述
bodyDataVolume schemaapplication/json formatted
HTTP 响应
HTTP 状态码响应体
200 - OKDataVolume schema
201 - CreatedDataVolume schema
202 - AcceptedDataVolume schema
401 - UnauthorizedEmpty

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

HTTP 方法
DELETE
描述
delete the specified DataVolume
查询参数
参数类型描述
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 响应
HTTP 状态码响应体
200 - OKStatus schema
202 - AcceptedStatus schema
401 - UnauthorizedEmpty
HTTP 方法
GET
描述
read the specified DataVolume
HTTP 响应
HTTP 状态码响应体
200 - OKDataVolume schema
401 - UnauthorizedEmpty
HTTP 方法
PATCH
描述
partially update the specified DataVolume
查询参数
参数类型描述
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 响应
HTTP 状态码响应体
200 - OKDataVolume schema
401 - UnauthorizedEmpty
HTTP 方法
PUT
描述
replace the specified DataVolume
查询参数
参数类型描述
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.
请求体参数
参数类型描述
bodyDataVolume schemaapplication/json formatted
HTTP 响应
HTTP 状态码响应体
200 - OKDataVolume schema
201 - CreatedDataVolume schema
401 - UnauthorizedEmpty

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

HTTP 方法
GET
描述
read status of the specified DataVolume
HTTP 响应
HTTP 状态码响应体
200 - OKDataVolume schema
401 - UnauthorizedEmpty
HTTP 方法
PATCH
描述
partially update status of the specified DataVolume
查询参数
参数类型描述
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 响应
HTTP 状态码响应体
200 - OKDataVolume schema
401 - UnauthorizedEmpty
HTTP 方法
PUT
描述
replace status of the specified DataVolume
查询参数
参数类型描述
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.
请求体参数
参数类型描述
bodyDataVolume schemaapplication/json formatted
HTTP 响应
HTTP 状态码响应体
200 - OKDataVolume schema
201 - CreatedDataVolume schema
401 - UnauthorizedEmpty