Adding initial kubevirt support
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,625 @@
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
name: dataimportcrons.cdi.kubevirt.io
|
||||
spec:
|
||||
conversion:
|
||||
strategy: None
|
||||
group: cdi.kubevirt.io
|
||||
names:
|
||||
categories:
|
||||
- all
|
||||
kind: DataImportCron
|
||||
listKind: DataImportCronList
|
||||
plural: dataimportcrons
|
||||
shortNames:
|
||||
- dic
|
||||
- dics
|
||||
singular: dataimportcron
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1beta1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: DataImportCron defines a cron job for recurring polling/importing disk images as PVCs into a golden image namespace
|
||||
properties:
|
||||
apiVersion:
|
||||
description: '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'
|
||||
type: string
|
||||
kind:
|
||||
description: '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'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: DataImportCronSpec defines specification for DataImportCron
|
||||
properties:
|
||||
garbageCollect:
|
||||
description: GarbageCollect specifies whether old PVCs should be cleaned up after a new PVC is imported. Options are currently "Outdated" and "Never", defaults to "Outdated".
|
||||
type: string
|
||||
importsToKeep:
|
||||
description: Number of import PVCs to keep when garbage collecting. Default is 3.
|
||||
format: int32
|
||||
type: integer
|
||||
managedDataSource:
|
||||
description: ManagedDataSource specifies the name of the corresponding DataSource this cron will manage. DataSource has to be in the same namespace.
|
||||
type: string
|
||||
retentionPolicy:
|
||||
description: RetentionPolicy specifies whether the created DataVolumes and DataSources are retained when their DataImportCron is deleted. Default is RatainAll.
|
||||
type: string
|
||||
schedule:
|
||||
description: Schedule specifies in cron format when and how often to look for new imports
|
||||
type: string
|
||||
template:
|
||||
description: Template specifies template for the DVs to be created
|
||||
properties:
|
||||
apiVersion:
|
||||
description: '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'
|
||||
type: string
|
||||
kind:
|
||||
description: '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'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: DataVolumeSpec defines the DataVolume type specification
|
||||
properties:
|
||||
checkpoints:
|
||||
description: Checkpoints is a list of DataVolumeCheckpoints, representing stages in a multistage import.
|
||||
items:
|
||||
description: DataVolumeCheckpoint defines a stage in a warm migration.
|
||||
properties:
|
||||
current:
|
||||
description: Current is the identifier of the snapshot created for this checkpoint.
|
||||
type: string
|
||||
previous:
|
||||
description: Previous is the identifier of the snapshot from the previous checkpoint.
|
||||
type: string
|
||||
required:
|
||||
- current
|
||||
- previous
|
||||
type: object
|
||||
type: array
|
||||
contentType:
|
||||
description: 'DataVolumeContentType options: "kubevirt", "archive"'
|
||||
enum:
|
||||
- kubevirt
|
||||
- archive
|
||||
type: string
|
||||
finalCheckpoint:
|
||||
description: FinalCheckpoint indicates whether the current DataVolumeCheckpoint is the final checkpoint.
|
||||
type: boolean
|
||||
preallocation:
|
||||
description: Preallocation controls whether storage for DataVolumes should be allocated in advance.
|
||||
type: boolean
|
||||
priorityClassName:
|
||||
description: PriorityClassName for Importer, Cloner and Uploader pod
|
||||
type: string
|
||||
pvc:
|
||||
description: PVC is the PVC specification
|
||||
properties:
|
||||
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'
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
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.'
|
||||
properties:
|
||||
apiGroup:
|
||||
description: 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.
|
||||
type: string
|
||||
kind:
|
||||
description: Kind is the type of resource being referenced
|
||||
type: string
|
||||
name:
|
||||
description: Name is the name of resource being referenced
|
||||
type: string
|
||||
required:
|
||||
- kind
|
||||
- name
|
||||
type: object
|
||||
x-kubernetes-map-type: atomic
|
||||
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.'
|
||||
properties:
|
||||
apiGroup:
|
||||
description: 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.
|
||||
type: string
|
||||
kind:
|
||||
description: Kind is the type of resource being referenced
|
||||
type: string
|
||||
name:
|
||||
description: Name is the name of resource being referenced
|
||||
type: string
|
||||
namespace:
|
||||
description: 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.
|
||||
type: string
|
||||
required:
|
||||
- kind
|
||||
- name
|
||||
type: object
|
||||
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'
|
||||
properties:
|
||||
claims:
|
||||
description: "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. \n This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. \n This field is immutable."
|
||||
items:
|
||||
description: ResourceClaim references one entry in PodSpec.ResourceClaims.
|
||||
properties:
|
||||
name:
|
||||
description: Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container.
|
||||
type: string
|
||||
required:
|
||||
- name
|
||||
type: object
|
||||
type: array
|
||||
x-kubernetes-list-map-keys:
|
||||
- name
|
||||
x-kubernetes-list-type: map
|
||||
limits:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: 'Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
|
||||
type: object
|
||||
requests:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
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. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
|
||||
type: object
|
||||
type: object
|
||||
selector:
|
||||
description: selector is a label query over volumes to consider for binding.
|
||||
properties:
|
||||
matchExpressions:
|
||||
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
|
||||
items:
|
||||
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
|
||||
properties:
|
||||
key:
|
||||
description: key is the label key that the selector applies to.
|
||||
type: string
|
||||
operator:
|
||||
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
|
||||
type: string
|
||||
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.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
required:
|
||||
- key
|
||||
- operator
|
||||
type: object
|
||||
type: array
|
||||
matchLabels:
|
||||
additionalProperties:
|
||||
type: string
|
||||
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
|
||||
type: object
|
||||
x-kubernetes-map-type: atomic
|
||||
storageClassName:
|
||||
description: 'storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1'
|
||||
type: string
|
||||
volumeMode:
|
||||
description: volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.
|
||||
type: string
|
||||
volumeName:
|
||||
description: volumeName is the binding reference to the PersistentVolume backing this claim.
|
||||
type: string
|
||||
type: object
|
||||
source:
|
||||
description: Source is the src of the data for the requested DataVolume
|
||||
properties:
|
||||
blank:
|
||||
description: DataVolumeBlankImage provides the parameters to create a new raw blank image for the PVC
|
||||
type: object
|
||||
gcs:
|
||||
description: DataVolumeSourceGCS provides the parameters to create a Data Volume from an GCS source
|
||||
properties:
|
||||
secretRef:
|
||||
description: SecretRef provides the secret reference needed to access the GCS source
|
||||
type: string
|
||||
url:
|
||||
description: URL is the url of the GCS source
|
||||
type: string
|
||||
required:
|
||||
- url
|
||||
type: object
|
||||
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
|
||||
properties:
|
||||
certConfigMap:
|
||||
description: CertConfigMap is a configmap reference, containing a Certificate Authority(CA) public key, and a base64 encoded pem certificate
|
||||
type: string
|
||||
extraHeaders:
|
||||
description: ExtraHeaders is a list of strings containing extra headers to include with HTTP transfer requests
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
secretExtraHeaders:
|
||||
description: SecretExtraHeaders is a list of Secret references, each containing an extra HTTP header that may include sensitive information
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
secretRef:
|
||||
description: SecretRef A Secret reference, the secret should contain accessKeyId (user name) base64 encoded, and secretKey (password) also base64 encoded
|
||||
type: string
|
||||
url:
|
||||
description: URL is the URL of the http(s) endpoint
|
||||
type: string
|
||||
required:
|
||||
- url
|
||||
type: object
|
||||
imageio:
|
||||
description: DataVolumeSourceImageIO provides the parameters to create a Data Volume from an imageio source
|
||||
properties:
|
||||
certConfigMap:
|
||||
description: CertConfigMap provides a reference to the CA cert
|
||||
type: string
|
||||
diskId:
|
||||
description: DiskID provides id of a disk to be imported
|
||||
type: string
|
||||
secretRef:
|
||||
description: SecretRef provides the secret reference needed to access the ovirt-engine
|
||||
type: string
|
||||
url:
|
||||
description: URL is the URL of the ovirt-engine
|
||||
type: string
|
||||
required:
|
||||
- diskId
|
||||
- url
|
||||
type: object
|
||||
pvc:
|
||||
description: DataVolumeSourcePVC provides the parameters to create a Data Volume from an existing PVC
|
||||
properties:
|
||||
name:
|
||||
description: The name of the source PVC
|
||||
type: string
|
||||
namespace:
|
||||
description: The namespace of the source PVC
|
||||
type: string
|
||||
required:
|
||||
- name
|
||||
- namespace
|
||||
type: object
|
||||
registry:
|
||||
description: DataVolumeSourceRegistry provides the parameters to create a Data Volume from an registry source
|
||||
properties:
|
||||
certConfigMap:
|
||||
description: CertConfigMap provides a reference to the Registry certs
|
||||
type: string
|
||||
imageStream:
|
||||
description: ImageStream is the name of image stream for import
|
||||
type: string
|
||||
pullMethod:
|
||||
description: PullMethod can be either "pod" (default import), or "node" (node docker cache based import)
|
||||
type: string
|
||||
secretRef:
|
||||
description: SecretRef provides the secret reference needed to access the Registry source
|
||||
type: string
|
||||
url:
|
||||
description: 'URL is the url of the registry source (starting with the scheme: docker, oci-archive)'
|
||||
type: string
|
||||
type: object
|
||||
s3:
|
||||
description: DataVolumeSourceS3 provides the parameters to create a Data Volume from an S3 source
|
||||
properties:
|
||||
certConfigMap:
|
||||
description: CertConfigMap is a configmap reference, containing a Certificate Authority(CA) public key, and a base64 encoded pem certificate
|
||||
type: string
|
||||
secretRef:
|
||||
description: SecretRef provides the secret reference needed to access the S3 source
|
||||
type: string
|
||||
url:
|
||||
description: URL is the url of the S3 source
|
||||
type: string
|
||||
required:
|
||||
- url
|
||||
type: object
|
||||
snapshot:
|
||||
description: DataVolumeSourceSnapshot provides the parameters to create a Data Volume from an existing VolumeSnapshot
|
||||
properties:
|
||||
name:
|
||||
description: The name of the source VolumeSnapshot
|
||||
type: string
|
||||
namespace:
|
||||
description: The namespace of the source VolumeSnapshot
|
||||
type: string
|
||||
required:
|
||||
- name
|
||||
- namespace
|
||||
type: object
|
||||
upload:
|
||||
description: DataVolumeSourceUpload provides the parameters to create a Data Volume by uploading the source
|
||||
type: object
|
||||
vddk:
|
||||
description: DataVolumeSourceVDDK provides the parameters to create a Data Volume from a Vmware source
|
||||
properties:
|
||||
backingFile:
|
||||
description: BackingFile is the path to the virtual hard disk to migrate from vCenter/ESXi
|
||||
type: string
|
||||
initImageURL:
|
||||
description: InitImageURL is an optional URL to an image containing an extracted VDDK library, overrides v2v-vmware config map
|
||||
type: string
|
||||
secretRef:
|
||||
description: SecretRef provides a reference to a secret containing the username and password needed to access the vCenter or ESXi host
|
||||
type: string
|
||||
thumbprint:
|
||||
description: Thumbprint is the certificate thumbprint of the vCenter or ESXi host
|
||||
type: string
|
||||
url:
|
||||
description: URL is the URL of the vCenter or ESXi host with the VM to migrate
|
||||
type: string
|
||||
uuid:
|
||||
description: UUID is the UUID of the virtual machine that the backing file is attached to in vCenter/ESXi
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
sourceRef:
|
||||
description: SourceRef is an indirect reference to the source of data for the requested DataVolume
|
||||
properties:
|
||||
kind:
|
||||
description: The kind of the source reference, currently only "DataSource" is supported
|
||||
type: string
|
||||
name:
|
||||
description: The name of the source reference
|
||||
type: string
|
||||
namespace:
|
||||
description: The namespace of the source reference, defaults to the DataVolume namespace
|
||||
type: string
|
||||
required:
|
||||
- kind
|
||||
- name
|
||||
type: object
|
||||
storage:
|
||||
description: Storage is the requested storage specification
|
||||
properties:
|
||||
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'
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
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.'
|
||||
properties:
|
||||
apiGroup:
|
||||
description: 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.
|
||||
type: string
|
||||
kind:
|
||||
description: Kind is the type of resource being referenced
|
||||
type: string
|
||||
name:
|
||||
description: Name is the name of resource being referenced
|
||||
type: string
|
||||
required:
|
||||
- kind
|
||||
- name
|
||||
type: object
|
||||
x-kubernetes-map-type: atomic
|
||||
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.'
|
||||
properties:
|
||||
apiGroup:
|
||||
description: 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.
|
||||
type: string
|
||||
kind:
|
||||
description: Kind is the type of resource being referenced
|
||||
type: string
|
||||
name:
|
||||
description: Name is the name of resource being referenced
|
||||
type: string
|
||||
namespace:
|
||||
description: 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.
|
||||
type: string
|
||||
required:
|
||||
- kind
|
||||
- name
|
||||
type: object
|
||||
resources:
|
||||
description: 'Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources'
|
||||
properties:
|
||||
claims:
|
||||
description: "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. \n This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. \n This field is immutable."
|
||||
items:
|
||||
description: ResourceClaim references one entry in PodSpec.ResourceClaims.
|
||||
properties:
|
||||
name:
|
||||
description: Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container.
|
||||
type: string
|
||||
required:
|
||||
- name
|
||||
type: object
|
||||
type: array
|
||||
x-kubernetes-list-map-keys:
|
||||
- name
|
||||
x-kubernetes-list-type: map
|
||||
limits:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
description: 'Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
|
||||
type: object
|
||||
requests:
|
||||
additionalProperties:
|
||||
anyOf:
|
||||
- type: integer
|
||||
- type: string
|
||||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||||
x-kubernetes-int-or-string: true
|
||||
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. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
|
||||
type: object
|
||||
type: object
|
||||
selector:
|
||||
description: A label query over volumes to consider for binding.
|
||||
properties:
|
||||
matchExpressions:
|
||||
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
|
||||
items:
|
||||
description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
|
||||
properties:
|
||||
key:
|
||||
description: key is the label key that the selector applies to.
|
||||
type: string
|
||||
operator:
|
||||
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
|
||||
type: string
|
||||
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.
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
required:
|
||||
- key
|
||||
- operator
|
||||
type: object
|
||||
type: array
|
||||
matchLabels:
|
||||
additionalProperties:
|
||||
type: string
|
||||
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
|
||||
type: object
|
||||
x-kubernetes-map-type: atomic
|
||||
storageClassName:
|
||||
description: 'Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1'
|
||||
type: string
|
||||
volumeMode:
|
||||
description: volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.
|
||||
type: string
|
||||
volumeName:
|
||||
description: VolumeName is the binding reference to the PersistentVolume backing this claim.
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
status:
|
||||
description: DataVolumeStatus contains the current status of the DataVolume
|
||||
properties:
|
||||
claimName:
|
||||
description: ClaimName is the name of the underlying PVC used by the DataVolume.
|
||||
type: string
|
||||
conditions:
|
||||
items:
|
||||
description: DataVolumeCondition represents the state of a data volume condition.
|
||||
properties:
|
||||
lastHeartbeatTime:
|
||||
format: date-time
|
||||
type: string
|
||||
lastTransitionTime:
|
||||
format: date-time
|
||||
type: string
|
||||
message:
|
||||
type: string
|
||||
reason:
|
||||
type: string
|
||||
status:
|
||||
type: string
|
||||
type:
|
||||
description: DataVolumeConditionType is the string representation of known condition types
|
||||
type: string
|
||||
required:
|
||||
- status
|
||||
- type
|
||||
type: object
|
||||
type: array
|
||||
phase:
|
||||
description: Phase is the current phase of the data volume
|
||||
type: string
|
||||
progress:
|
||||
description: DataVolumeProgress is the current progress of the DataVolume transfer operation. Value between 0 and 100 inclusive, N/A if not available
|
||||
type: string
|
||||
restartCount:
|
||||
description: RestartCount is the number of times the pod populating the DataVolume has restarted
|
||||
format: int32
|
||||
type: integer
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
required:
|
||||
- managedDataSource
|
||||
- schedule
|
||||
- template
|
||||
type: object
|
||||
status:
|
||||
description: DataImportCronStatus provides the most recently observed status of the DataImportCron
|
||||
properties:
|
||||
conditions:
|
||||
items:
|
||||
description: DataImportCronCondition represents the state of a data import cron condition
|
||||
properties:
|
||||
lastHeartbeatTime:
|
||||
format: date-time
|
||||
type: string
|
||||
lastTransitionTime:
|
||||
format: date-time
|
||||
type: string
|
||||
message:
|
||||
type: string
|
||||
reason:
|
||||
type: string
|
||||
status:
|
||||
type: string
|
||||
type:
|
||||
description: DataImportCronConditionType is the string representation of known condition types
|
||||
type: string
|
||||
required:
|
||||
- status
|
||||
- type
|
||||
type: object
|
||||
type: array
|
||||
currentImports:
|
||||
description: CurrentImports are the imports in progress. Currently only a single import is supported.
|
||||
items:
|
||||
description: ImportStatus of a currently in progress import
|
||||
properties:
|
||||
DataVolumeName:
|
||||
description: DataVolumeName is the currently in progress import DataVolume
|
||||
type: string
|
||||
Digest:
|
||||
description: Digest of the currently imported image
|
||||
type: string
|
||||
required:
|
||||
- DataVolumeName
|
||||
- Digest
|
||||
type: object
|
||||
type: array
|
||||
lastExecutionTimestamp:
|
||||
description: LastExecutionTimestamp is the time of the last polling
|
||||
format: date-time
|
||||
type: string
|
||||
lastImportTimestamp:
|
||||
description: LastImportTimestamp is the time of the last import
|
||||
format: date-time
|
||||
type: string
|
||||
lastImportedPVC:
|
||||
description: LastImportedPVC is the last imported PVC
|
||||
properties:
|
||||
name:
|
||||
description: The name of the source PVC
|
||||
type: string
|
||||
namespace:
|
||||
description: The namespace of the source PVC
|
||||
type: string
|
||||
required:
|
||||
- name
|
||||
- namespace
|
||||
type: object
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
@@ -0,0 +1,137 @@
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.11.3
|
||||
operator.cdi.kubevirt.io/lastAppliedConfiguration: '{"kind":"CustomResourceDefinition","apiVersion":"apiextensions.k8s.io/v1","metadata":{"name":"datasources.cdi.kubevirt.io","creationTimestamp":null,"annotations":{"controller-gen.kubebuilder.io/version":"v0.11.3"}},"spec":{"group":"cdi.kubevirt.io","names":{"plural":"datasources","singular":"datasource","shortNames":["das"],"kind":"DataSource","listKind":"DataSourceList","categories":["all"]},"scope":"Namespaced","versions":[{"name":"v1beta1","served":true,"storage":true,"schema":{"openAPIV3Schema":{"description":"DataSource references an import/clone source for a DataVolume","type":"object","required":["spec"],"properties":{"apiVersion":{"description":"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","type":"string"},"kind":{"description":"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","type":"string"},"metadata":{"type":"object"},"spec":{"description":"DataSourceSpec defines specification for DataSource","type":"object","required":["source"],"properties":{"source":{"description":"Source is the source of the data referenced by the DataSource","type":"object","properties":{"pvc":{"description":"DataVolumeSourcePVC provides the parameters to create a Data Volume from an existing PVC","type":"object","required":["name","namespace"],"properties":{"name":{"description":"The name of the source PVC","type":"string"},"namespace":{"description":"The namespace of the source PVC","type":"string"}}},"snapshot":{"description":"DataVolumeSourceSnapshot provides the parameters to create a Data Volume from an existing VolumeSnapshot","type":"object","required":["name","namespace"],"properties":{"name":{"description":"The name of the source VolumeSnapshot","type":"string"},"namespace":{"description":"The namespace of the source VolumeSnapshot","type":"string"}}}}}}},"status":{"description":"DataSourceStatus provides the most recently observed status of the DataSource","type":"object","properties":{"conditions":{"type":"array","items":{"description":"DataSourceCondition represents the state of a data source condition","type":"object","required":["status","type"],"properties":{"lastHeartbeatTime":{"type":"string","format":"date-time"},"lastTransitionTime":{"type":"string","format":"date-time"},"message":{"type":"string"},"reason":{"type":"string"},"status":{"type":"string"},"type":{"description":"DataSourceConditionType is the string representation of known condition types","type":"string"}}}},"source":{"description":"Source is the current source of the data referenced by the DataSource","type":"object","properties":{"pvc":{"description":"DataVolumeSourcePVC provides the parameters to create a Data Volume from an existing PVC","type":"object","required":["name","namespace"],"properties":{"name":{"description":"The name of the source PVC","type":"string"},"namespace":{"description":"The namespace of the source PVC","type":"string"}}},"snapshot":{"description":"DataVolumeSourceSnapshot provides the parameters to create a Data Volume from an existing VolumeSnapshot","type":"object","required":["name","namespace"],"properties":{"name":{"description":"The name of the source VolumeSnapshot","type":"string"},"namespace":{"description":"The namespace of the source VolumeSnapshot","type":"string"}}}}}}}}}}}]},"status":{"conditions":null,"acceptedNames":{"plural":"","kind":""},"storedVersions":null}}'
|
||||
generation: 1
|
||||
labels:
|
||||
operator.cdi.kubevirt.io/createVersion: v1.57.0
|
||||
name: datasources.cdi.kubevirt.io
|
||||
spec:
|
||||
conversion:
|
||||
strategy: None
|
||||
group: cdi.kubevirt.io
|
||||
names:
|
||||
categories:
|
||||
- all
|
||||
kind: DataSource
|
||||
listKind: DataSourceList
|
||||
plural: datasources
|
||||
shortNames:
|
||||
- das
|
||||
singular: datasource
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1beta1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: DataSource references an import/clone source for a DataVolume
|
||||
properties:
|
||||
apiVersion:
|
||||
description: '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'
|
||||
type: string
|
||||
kind:
|
||||
description: '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'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: DataSourceSpec defines specification for DataSource
|
||||
properties:
|
||||
source:
|
||||
description: Source is the source of the data referenced by the DataSource
|
||||
properties:
|
||||
pvc:
|
||||
description: DataVolumeSourcePVC provides the parameters to create a Data Volume from an existing PVC
|
||||
properties:
|
||||
name:
|
||||
description: The name of the source PVC
|
||||
type: string
|
||||
namespace:
|
||||
description: The namespace of the source PVC
|
||||
type: string
|
||||
required:
|
||||
- name
|
||||
- namespace
|
||||
type: object
|
||||
snapshot:
|
||||
description: DataVolumeSourceSnapshot provides the parameters to create a Data Volume from an existing VolumeSnapshot
|
||||
properties:
|
||||
name:
|
||||
description: The name of the source VolumeSnapshot
|
||||
type: string
|
||||
namespace:
|
||||
description: The namespace of the source VolumeSnapshot
|
||||
type: string
|
||||
required:
|
||||
- name
|
||||
- namespace
|
||||
type: object
|
||||
type: object
|
||||
required:
|
||||
- source
|
||||
type: object
|
||||
status:
|
||||
description: DataSourceStatus provides the most recently observed status of the DataSource
|
||||
properties:
|
||||
conditions:
|
||||
items:
|
||||
description: DataSourceCondition represents the state of a data source condition
|
||||
properties:
|
||||
lastHeartbeatTime:
|
||||
format: date-time
|
||||
type: string
|
||||
lastTransitionTime:
|
||||
format: date-time
|
||||
type: string
|
||||
message:
|
||||
type: string
|
||||
reason:
|
||||
type: string
|
||||
status:
|
||||
type: string
|
||||
type:
|
||||
description: DataSourceConditionType is the string representation of known condition types
|
||||
type: string
|
||||
required:
|
||||
- status
|
||||
- type
|
||||
type: object
|
||||
type: array
|
||||
source:
|
||||
description: Source is the current source of the data referenced by the DataSource
|
||||
properties:
|
||||
pvc:
|
||||
description: DataVolumeSourcePVC provides the parameters to create a Data Volume from an existing PVC
|
||||
properties:
|
||||
name:
|
||||
description: The name of the source PVC
|
||||
type: string
|
||||
namespace:
|
||||
description: The namespace of the source PVC
|
||||
type: string
|
||||
required:
|
||||
- name
|
||||
- namespace
|
||||
type: object
|
||||
snapshot:
|
||||
description: DataVolumeSourceSnapshot provides the parameters to create a Data Volume from an existing VolumeSnapshot
|
||||
properties:
|
||||
name:
|
||||
description: The name of the source VolumeSnapshot
|
||||
type: string
|
||||
namespace:
|
||||
description: The namespace of the source VolumeSnapshot
|
||||
type: string
|
||||
required:
|
||||
- name
|
||||
- namespace
|
||||
type: object
|
||||
type: object
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,125 @@
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.11.3
|
||||
operator.cdi.kubevirt.io/lastAppliedConfiguration: '{"kind":"CustomResourceDefinition","apiVersion":"apiextensions.k8s.io/v1","metadata":{"name":"objecttransfers.cdi.kubevirt.io","creationTimestamp":null,"annotations":{"controller-gen.kubebuilder.io/version":"v0.11.3"}},"spec":{"group":"cdi.kubevirt.io","names":{"plural":"objecttransfers","singular":"objecttransfer","shortNames":["ot","ots"],"kind":"ObjectTransfer","listKind":"ObjectTransferList"},"scope":"Cluster","versions":[{"name":"v1beta1","served":true,"storage":true,"schema":{"openAPIV3Schema":{"description":"ObjectTransfer is the cluster scoped object transfer resource","type":"object","required":["spec"],"properties":{"apiVersion":{"description":"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","type":"string"},"kind":{"description":"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","type":"string"},"metadata":{"type":"object"},"spec":{"description":"ObjectTransferSpec specifies the source/target of the transfer","type":"object","required":["source","target"],"properties":{"parentName":{"type":"string"},"source":{"description":"TransferSource is the source of a ObjectTransfer","type":"object","required":["kind","name","namespace"],"properties":{"apiVersion":{"type":"string"},"kind":{"type":"string"},"name":{"type":"string"},"namespace":{"type":"string"},"requiredAnnotations":{"type":"object","additionalProperties":{"type":"string"}}}},"target":{"description":"TransferTarget is the target of an ObjectTransfer","type":"object","properties":{"name":{"type":"string"},"namespace":{"type":"string"}}}}},"status":{"description":"ObjectTransferStatus is the status of the ObjectTransfer","type":"object","properties":{"conditions":{"type":"array","items":{"description":"ObjectTransferCondition contains condition data","type":"object","required":["status","type"],"properties":{"lastHeartbeatTime":{"type":"string","format":"date-time"},"lastTransitionTime":{"type":"string","format":"date-time"},"message":{"type":"string"},"reason":{"type":"string"},"status":{"type":"string"},"type":{"description":"ObjectTransferConditionType is the type of ObjectTransferCondition","type":"string"}}}},"data":{"description":"Data is a place for intermediary state. Or anything really.","type":"object","additionalProperties":{"type":"string"}},"phase":{"description":"Phase is the current phase of the transfer","type":"string"}}}}}},"subresources":{"status":{}},"additionalPrinterColumns":[{"name":"Age","type":"date","jsonPath":".metadata.creationTimestamp"},{"name":"Phase","type":"string","description":"The phase of the ObjectTransfer","jsonPath":".status.phase"}]}]},"status":{"conditions":null,"acceptedNames":{"plural":"","kind":""},"storedVersions":null}}'
|
||||
generation: 1
|
||||
labels:
|
||||
operator.cdi.kubevirt.io/createVersion: v1.57.0
|
||||
name: objecttransfers.cdi.kubevirt.io
|
||||
spec:
|
||||
conversion:
|
||||
strategy: None
|
||||
group: cdi.kubevirt.io
|
||||
names:
|
||||
kind: ObjectTransfer
|
||||
listKind: ObjectTransferList
|
||||
plural: objecttransfers
|
||||
shortNames:
|
||||
- ot
|
||||
- ots
|
||||
singular: objecttransfer
|
||||
scope: Cluster
|
||||
versions:
|
||||
- additionalPrinterColumns:
|
||||
- jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
- description: The phase of the ObjectTransfer
|
||||
jsonPath: .status.phase
|
||||
name: Phase
|
||||
type: string
|
||||
name: v1beta1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: ObjectTransfer is the cluster scoped object transfer resource
|
||||
properties:
|
||||
apiVersion:
|
||||
description: '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'
|
||||
type: string
|
||||
kind:
|
||||
description: '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'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: ObjectTransferSpec specifies the source/target of the transfer
|
||||
properties:
|
||||
parentName:
|
||||
type: string
|
||||
source:
|
||||
description: TransferSource is the source of a ObjectTransfer
|
||||
properties:
|
||||
apiVersion:
|
||||
type: string
|
||||
kind:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
namespace:
|
||||
type: string
|
||||
requiredAnnotations:
|
||||
additionalProperties:
|
||||
type: string
|
||||
type: object
|
||||
required:
|
||||
- kind
|
||||
- name
|
||||
- namespace
|
||||
type: object
|
||||
target:
|
||||
description: TransferTarget is the target of an ObjectTransfer
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
namespace:
|
||||
type: string
|
||||
type: object
|
||||
required:
|
||||
- source
|
||||
- target
|
||||
type: object
|
||||
status:
|
||||
description: ObjectTransferStatus is the status of the ObjectTransfer
|
||||
properties:
|
||||
conditions:
|
||||
items:
|
||||
description: ObjectTransferCondition contains condition data
|
||||
properties:
|
||||
lastHeartbeatTime:
|
||||
format: date-time
|
||||
type: string
|
||||
lastTransitionTime:
|
||||
format: date-time
|
||||
type: string
|
||||
message:
|
||||
type: string
|
||||
reason:
|
||||
type: string
|
||||
status:
|
||||
type: string
|
||||
type:
|
||||
description: ObjectTransferConditionType is the type of ObjectTransferCondition
|
||||
type: string
|
||||
required:
|
||||
- status
|
||||
- type
|
||||
type: object
|
||||
type: array
|
||||
data:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: Data is a place for intermediary state. Or anything really.
|
||||
type: object
|
||||
phase:
|
||||
description: Phase is the current phase of the transfer
|
||||
type: string
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources:
|
||||
status: {}
|
||||
@@ -0,0 +1,95 @@
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.11.3
|
||||
operator.cdi.kubevirt.io/lastAppliedConfiguration: '{"kind":"CustomResourceDefinition","apiVersion":"apiextensions.k8s.io/v1","metadata":{"name":"storageprofiles.cdi.kubevirt.io","creationTimestamp":null,"annotations":{"controller-gen.kubebuilder.io/version":"v0.11.3"}},"spec":{"group":"cdi.kubevirt.io","names":{"plural":"storageprofiles","singular":"storageprofile","kind":"StorageProfile","listKind":"StorageProfileList"},"scope":"Cluster","versions":[{"name":"v1beta1","served":true,"storage":true,"schema":{"openAPIV3Schema":{"description":"StorageProfile provides a CDI specific recommendation for storage parameters","type":"object","required":["spec"],"properties":{"apiVersion":{"description":"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","type":"string"},"kind":{"description":"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","type":"string"},"metadata":{"type":"object"},"spec":{"description":"StorageProfileSpec defines specification for StorageProfile","type":"object","properties":{"claimPropertySets":{"description":"ClaimPropertySets is a provided set of properties applicable to PVC","type":"array","items":{"description":"ClaimPropertySet is a set of properties applicable to PVC","type":"object","properties":{"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","items":{"type":"string"}},"volumeMode":{"description":"VolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.","type":"string"}}}},"cloneStrategy":{"description":"CloneStrategy defines the preferred method for performing a CDI clone","type":"string"},"dataImportCronSourceFormat":{"description":"DataImportCronSourceFormat defines the format of the DataImportCron-created disk image sources","type":"string"}}},"status":{"description":"StorageProfileStatus provides the most recently observed status of the StorageProfile","type":"object","properties":{"claimPropertySets":{"description":"ClaimPropertySets computed from the spec and detected in the system","type":"array","items":{"description":"ClaimPropertySet is a set of properties applicable to PVC","type":"object","properties":{"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","items":{"type":"string"}},"volumeMode":{"description":"VolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.","type":"string"}}}},"cloneStrategy":{"description":"CloneStrategy defines the preferred method for performing a CDI clone","type":"string"},"dataImportCronSourceFormat":{"description":"DataImportCronSourceFormat defines the format of the DataImportCron-created disk image sources","type":"string"},"provisioner":{"description":"The Storage class provisioner plugin name","type":"string"},"storageClass":{"description":"The StorageClass name for which capabilities are defined","type":"string"}}}}}}}]},"status":{"conditions":null,"acceptedNames":{"plural":"","kind":""},"storedVersions":null}}'
|
||||
generation: 1
|
||||
labels:
|
||||
operator.cdi.kubevirt.io/createVersion: v1.57.0
|
||||
name: storageprofiles.cdi.kubevirt.io
|
||||
spec:
|
||||
conversion:
|
||||
strategy: None
|
||||
group: cdi.kubevirt.io
|
||||
names:
|
||||
kind: StorageProfile
|
||||
listKind: StorageProfileList
|
||||
plural: storageprofiles
|
||||
singular: storageprofile
|
||||
scope: Cluster
|
||||
versions:
|
||||
- name: v1beta1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: StorageProfile provides a CDI specific recommendation for storage parameters
|
||||
properties:
|
||||
apiVersion:
|
||||
description: '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'
|
||||
type: string
|
||||
kind:
|
||||
description: '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'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: StorageProfileSpec defines specification for StorageProfile
|
||||
properties:
|
||||
claimPropertySets:
|
||||
description: ClaimPropertySets is a provided set of properties applicable to PVC
|
||||
items:
|
||||
description: ClaimPropertySet is a set of properties applicable to PVC
|
||||
properties:
|
||||
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'
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
volumeMode:
|
||||
description: VolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
cloneStrategy:
|
||||
description: CloneStrategy defines the preferred method for performing a CDI clone
|
||||
type: string
|
||||
dataImportCronSourceFormat:
|
||||
description: DataImportCronSourceFormat defines the format of the DataImportCron-created disk image sources
|
||||
type: string
|
||||
type: object
|
||||
status:
|
||||
description: StorageProfileStatus provides the most recently observed status of the StorageProfile
|
||||
properties:
|
||||
claimPropertySets:
|
||||
description: ClaimPropertySets computed from the spec and detected in the system
|
||||
items:
|
||||
description: ClaimPropertySet is a set of properties applicable to PVC
|
||||
properties:
|
||||
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'
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
volumeMode:
|
||||
description: VolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
cloneStrategy:
|
||||
description: CloneStrategy defines the preferred method for performing a CDI clone
|
||||
type: string
|
||||
dataImportCronSourceFormat:
|
||||
description: DataImportCronSourceFormat defines the format of the DataImportCron-created disk image sources
|
||||
type: string
|
||||
provisioner:
|
||||
description: The Storage class provisioner plugin name
|
||||
type: string
|
||||
storageClass:
|
||||
description: The StorageClass name for which capabilities are defined
|
||||
type: string
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
@@ -0,0 +1,68 @@
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.11.3
|
||||
operator.cdi.kubevirt.io/lastAppliedConfiguration: '{"kind":"CustomResourceDefinition","apiVersion":"apiextensions.k8s.io/v1","metadata":{"name":"volumeclonesources.cdi.kubevirt.io","creationTimestamp":null,"annotations":{"controller-gen.kubebuilder.io/version":"v0.11.3"}},"spec":{"group":"cdi.kubevirt.io","names":{"plural":"volumeclonesources","singular":"volumeclonesource","kind":"VolumeCloneSource","listKind":"VolumeCloneSourceList"},"scope":"Namespaced","versions":[{"name":"v1beta1","served":true,"storage":true,"schema":{"openAPIV3Schema":{"description":"VolumeCloneSource refers to a PVC/VolumeSnapshot of any storageclass/volumemode to be used as the source of a new PVC","type":"object","required":["spec"],"properties":{"apiVersion":{"description":"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","type":"string"},"kind":{"description":"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","type":"string"},"metadata":{"type":"object"},"spec":{"description":"VolumeCloneSourceSpec defines the Spec field for VolumeCloneSource","type":"object","required":["source"],"properties":{"preallocation":{"description":"Preallocation controls whether storage for the target PVC should be allocated in advance.","type":"boolean"},"priorityClassName":{"description":"PriorityClassName is the priorityclass for the claim","type":"string"},"source":{"description":"Source is the src of the data to be cloned to the target PVC","type":"object","required":["kind","name"],"properties":{"apiGroup":{"description":"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.","type":"string"},"kind":{"description":"Kind is the type of resource being referenced","type":"string"},"name":{"description":"Name is the name of resource being referenced","type":"string"}},"x-kubernetes-map-type":"atomic"}}}}}}}]},"status":{"conditions":null,"acceptedNames":{"plural":"","kind":""},"storedVersions":null}}'
|
||||
generation: 1
|
||||
labels:
|
||||
operator.cdi.kubevirt.io/createVersion: v1.57.0
|
||||
name: volumeclonesources.cdi.kubevirt.io
|
||||
spec:
|
||||
conversion:
|
||||
strategy: None
|
||||
group: cdi.kubevirt.io
|
||||
names:
|
||||
kind: VolumeCloneSource
|
||||
listKind: VolumeCloneSourceList
|
||||
plural: volumeclonesources
|
||||
singular: volumeclonesource
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1beta1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: VolumeCloneSource refers to a PVC/VolumeSnapshot of any storageclass/volumemode to be used as the source of a new PVC
|
||||
properties:
|
||||
apiVersion:
|
||||
description: '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'
|
||||
type: string
|
||||
kind:
|
||||
description: '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'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: VolumeCloneSourceSpec defines the Spec field for VolumeCloneSource
|
||||
properties:
|
||||
preallocation:
|
||||
description: Preallocation controls whether storage for the target PVC should be allocated in advance.
|
||||
type: boolean
|
||||
priorityClassName:
|
||||
description: PriorityClassName is the priorityclass for the claim
|
||||
type: string
|
||||
source:
|
||||
description: Source is the src of the data to be cloned to the target PVC
|
||||
properties:
|
||||
apiGroup:
|
||||
description: 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.
|
||||
type: string
|
||||
kind:
|
||||
description: Kind is the type of resource being referenced
|
||||
type: string
|
||||
name:
|
||||
description: Name is the name of resource being referenced
|
||||
type: string
|
||||
required:
|
||||
- kind
|
||||
- name
|
||||
type: object
|
||||
x-kubernetes-map-type: atomic
|
||||
required:
|
||||
- source
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
@@ -0,0 +1,165 @@
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
name: volumeimportsources.cdi.kubevirt.io
|
||||
spec:
|
||||
conversion:
|
||||
strategy: None
|
||||
group: cdi.kubevirt.io
|
||||
names:
|
||||
kind: VolumeImportSource
|
||||
listKind: VolumeImportSourceList
|
||||
plural: volumeimportsources
|
||||
singular: volumeimportsource
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1beta1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: VolumeImportSource works as a specification to populate PersistentVolumeClaims with data imported from an HTTP/S3/Registry/Blank/ImageIO/VDDK source
|
||||
properties:
|
||||
apiVersion:
|
||||
description: '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'
|
||||
type: string
|
||||
kind:
|
||||
description: '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'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: VolumeImportSourceSpec defines the Spec field for VolumeImportSource
|
||||
properties:
|
||||
contentType:
|
||||
description: ContentType represents the type of the imported data (Kubevirt or archive)
|
||||
type: string
|
||||
preallocation:
|
||||
description: Preallocation controls whether storage for the target PVC should be allocated in advance.
|
||||
type: boolean
|
||||
source:
|
||||
description: Source is the src of the data to be imported in the target PVC
|
||||
properties:
|
||||
blank:
|
||||
description: DataVolumeBlankImage provides the parameters to create a new raw blank image for the PVC
|
||||
type: object
|
||||
gcs:
|
||||
description: DataVolumeSourceGCS provides the parameters to create a Data Volume from an GCS source
|
||||
properties:
|
||||
secretRef:
|
||||
description: SecretRef provides the secret reference needed to access the GCS source
|
||||
type: string
|
||||
url:
|
||||
description: URL is the url of the GCS source
|
||||
type: string
|
||||
required:
|
||||
- url
|
||||
type: object
|
||||
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
|
||||
properties:
|
||||
certConfigMap:
|
||||
description: CertConfigMap is a configmap reference, containing a Certificate Authority(CA) public key, and a base64 encoded pem certificate
|
||||
type: string
|
||||
extraHeaders:
|
||||
description: ExtraHeaders is a list of strings containing extra headers to include with HTTP transfer requests
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
secretExtraHeaders:
|
||||
description: SecretExtraHeaders is a list of Secret references, each containing an extra HTTP header that may include sensitive information
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
secretRef:
|
||||
description: SecretRef A Secret reference, the secret should contain accessKeyId (user name) base64 encoded, and secretKey (password) also base64 encoded
|
||||
type: string
|
||||
url:
|
||||
description: URL is the URL of the http(s) endpoint
|
||||
type: string
|
||||
required:
|
||||
- url
|
||||
type: object
|
||||
imageio:
|
||||
description: DataVolumeSourceImageIO provides the parameters to create a Data Volume from an imageio source
|
||||
properties:
|
||||
certConfigMap:
|
||||
description: CertConfigMap provides a reference to the CA cert
|
||||
type: string
|
||||
diskId:
|
||||
description: DiskID provides id of a disk to be imported
|
||||
type: string
|
||||
secretRef:
|
||||
description: SecretRef provides the secret reference needed to access the ovirt-engine
|
||||
type: string
|
||||
url:
|
||||
description: URL is the URL of the ovirt-engine
|
||||
type: string
|
||||
required:
|
||||
- diskId
|
||||
- url
|
||||
type: object
|
||||
registry:
|
||||
description: DataVolumeSourceRegistry provides the parameters to create a Data Volume from an registry source
|
||||
properties:
|
||||
certConfigMap:
|
||||
description: CertConfigMap provides a reference to the Registry certs
|
||||
type: string
|
||||
imageStream:
|
||||
description: ImageStream is the name of image stream for import
|
||||
type: string
|
||||
pullMethod:
|
||||
description: PullMethod can be either "pod" (default import), or "node" (node docker cache based import)
|
||||
type: string
|
||||
secretRef:
|
||||
description: SecretRef provides the secret reference needed to access the Registry source
|
||||
type: string
|
||||
url:
|
||||
description: 'URL is the url of the registry source (starting with the scheme: docker, oci-archive)'
|
||||
type: string
|
||||
type: object
|
||||
s3:
|
||||
description: DataVolumeSourceS3 provides the parameters to create a Data Volume from an S3 source
|
||||
properties:
|
||||
certConfigMap:
|
||||
description: CertConfigMap is a configmap reference, containing a Certificate Authority(CA) public key, and a base64 encoded pem certificate
|
||||
type: string
|
||||
secretRef:
|
||||
description: SecretRef provides the secret reference needed to access the S3 source
|
||||
type: string
|
||||
url:
|
||||
description: URL is the url of the S3 source
|
||||
type: string
|
||||
required:
|
||||
- url
|
||||
type: object
|
||||
vddk:
|
||||
description: DataVolumeSourceVDDK provides the parameters to create a Data Volume from a Vmware source
|
||||
properties:
|
||||
backingFile:
|
||||
description: BackingFile is the path to the virtual hard disk to migrate from vCenter/ESXi
|
||||
type: string
|
||||
initImageURL:
|
||||
description: InitImageURL is an optional URL to an image containing an extracted VDDK library, overrides v2v-vmware config map
|
||||
type: string
|
||||
secretRef:
|
||||
description: SecretRef provides a reference to a secret containing the username and password needed to access the vCenter or ESXi host
|
||||
type: string
|
||||
thumbprint:
|
||||
description: Thumbprint is the certificate thumbprint of the vCenter or ESXi host
|
||||
type: string
|
||||
url:
|
||||
description: URL is the URL of the vCenter or ESXi host with the VM to migrate
|
||||
type: string
|
||||
uuid:
|
||||
description: UUID is the UUID of the virtual machine that the backing file is attached to in vCenter/ESXi
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
type: object
|
||||
status:
|
||||
description: VolumeImportSourceStatus provides the most recently observed status of the VolumeImportSource
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
@@ -0,0 +1,46 @@
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
name: volumeuploadsources.cdi.kubevirt.io
|
||||
spec:
|
||||
conversion:
|
||||
strategy: None
|
||||
group: cdi.kubevirt.io
|
||||
names:
|
||||
kind: VolumeUploadSource
|
||||
listKind: VolumeUploadSourceList
|
||||
plural: volumeuploadsources
|
||||
singular: volumeuploadsource
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1beta1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: VolumeUploadSource is a specification to populate PersistentVolumeClaims with upload data
|
||||
properties:
|
||||
apiVersion:
|
||||
description: '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'
|
||||
type: string
|
||||
kind:
|
||||
description: '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'
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: VolumeUploadSourceSpec defines specification for VolumeUploadSource
|
||||
properties:
|
||||
contentType:
|
||||
description: ContentType represents the type of the upload data (Kubevirt or archive)
|
||||
type: string
|
||||
preallocation:
|
||||
description: Preallocation controls whether storage for the target PVC should be allocated in advance.
|
||||
type: boolean
|
||||
type: object
|
||||
status:
|
||||
description: VolumeUploadSourceStatus provides the most recently observed status of the VolumeUploadSource
|
||||
type: object
|
||||
required:
|
||||
- spec
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
17
crd/cdi/datas.tf
Normal file
17
crd/cdi/datas.tf
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
locals {
|
||||
common-labels = {
|
||||
"vynil.solidite.fr/owner-name" = var.instance
|
||||
"vynil.solidite.fr/owner-namespace" = var.namespace
|
||||
"vynil.solidite.fr/owner-category" = var.category
|
||||
"vynil.solidite.fr/owner-component" = var.component
|
||||
"app.kubernetes.io/managed-by" = "vynil"
|
||||
"app.kubernetes.io/name" = var.component
|
||||
"app.kubernetes.io/instance" = var.instance
|
||||
}
|
||||
}
|
||||
data "kustomization_overlay" "data" {
|
||||
common_labels = local.common-labels
|
||||
namespace = var.namespace
|
||||
resources = []
|
||||
}
|
||||
33
crd/cdi/index.rhai
Normal file
33
crd/cdi/index.rhai
Normal file
@@ -0,0 +1,33 @@
|
||||
const VERSION="3.5.5";
|
||||
const SRC=src;
|
||||
const DEST=dest;
|
||||
const DOIT=config.apply;
|
||||
const PURGE=config.purge;
|
||||
const crdFiles=[
|
||||
"apiextensions.k8s.io_v1_CustomResourceDefinition_cdis.cdi.kubevirt.io.yaml",
|
||||
"apiextensions.k8s.io_v1_CustomResourceDefinition_cdiconfigs.cdi.kubevirt.io.yaml",
|
||||
"apiextensions.k8s.io_v1_CustomResourceDefinition_dataimportcrons.cdi.kubevirt.io.yaml",
|
||||
"apiextensions.k8s.io_v1_CustomResourceDefinition_datasources.cdi.kubevirt.io.yaml",
|
||||
"apiextensions.k8s.io_v1_CustomResourceDefinition_datavolumes.cdi.kubevirt.io.yaml",
|
||||
"apiextensions.k8s.io_v1_CustomResourceDefinition_objecttransfers.cdi.kubevirt.io.yaml",
|
||||
"apiextensions.k8s.io_v1_CustomResourceDefinition_storageprofiles.cdi.kubevirt.io.yaml",
|
||||
"apiextensions.k8s.io_v1_CustomResourceDefinition_volumeclonesources.cdi.kubevirt.io.yaml",
|
||||
"apiextensions.k8s.io_v1_CustomResourceDefinition_volumeimportsources.cdi.kubevirt.io.yaml",
|
||||
"apiextensions.k8s.io_v1_CustomResourceDefinition_volumeuploadsources.cdi.kubevirt.io.yaml",
|
||||
];
|
||||
fn pre_install() {
|
||||
if ! global::DOIT {
|
||||
return;
|
||||
}
|
||||
for file in global::crdFiles {
|
||||
shell(`kubectl replace -f ${global::SRC}/${file} || kubectl create -f ${global::SRC}/${file}`);
|
||||
}
|
||||
}
|
||||
fn post_destroy() {
|
||||
if ! global::PURGE {
|
||||
return;
|
||||
}
|
||||
for file in global::crdFiles {
|
||||
shell(`kubectl delete -f ${global::SRC}/${file}`);
|
||||
}
|
||||
}
|
||||
21
crd/cdi/index.yaml
Normal file
21
crd/cdi/index.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
apiVersion: vinyl.solidite.fr/v1beta1
|
||||
kind: Component
|
||||
category: crd
|
||||
metadata:
|
||||
name: cdi
|
||||
description: CRD for Containerized Data Importer
|
||||
options:
|
||||
apply:
|
||||
default: true
|
||||
examples:
|
||||
- true
|
||||
type: boolean
|
||||
purge:
|
||||
default: false
|
||||
examples:
|
||||
- false
|
||||
type: boolean
|
||||
dependencies: []
|
||||
providers: null
|
||||
tfaddtype: null
|
||||
Reference in New Issue
Block a user