Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the v2v v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=v2v.kubevirt.io
Package v1alpha1 contains API Schema definitions for the v2v v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=v2v.kubevirt.io
Index ¶
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- type DataVolumeItem
- type MappingRulesVerifiedReason
- type ObjectIdentifier
- type OvirtMappings
- type ProcessingConditionReason
- type ResourceMapping
- type ResourceMappingItem
- type ResourceMappingList
- type ResourceMappingSpec
- type ResourceMappingStatus
- type Source
- type SucceededConditionReason
- type ValidConditionReason
- type VirtualMachineImport
- type VirtualMachineImportCondition
- type VirtualMachineImportConditionType
- type VirtualMachineImportList
- type VirtualMachineImportOvirtSourceSpec
- type VirtualMachineImportOvirtSourceVMClusterSpec
- type VirtualMachineImportOvirtSourceVMSpec
- type VirtualMachineImportSourceSpec
- type VirtualMachineImportSpec
- type VirtualMachineImportStatus
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "v2v.kubevirt.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme may be used to add all resources defined in the project to a Scheme AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
Types ¶
type DataVolumeItem ¶
type DataVolumeItem struct {
Name string `json:"name"`
}
DataVolumeItem defines the details of a data volume created by the VM import process +k8s:openapi-gen=true
func (*DataVolumeItem) DeepCopy ¶
func (in *DataVolumeItem) DeepCopy() *DataVolumeItem
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DataVolumeItem.
func (*DataVolumeItem) DeepCopyInto ¶
func (in *DataVolumeItem) DeepCopyInto(out *DataVolumeItem)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MappingRulesVerifiedReason ¶
type MappingRulesVerifiedReason string
MappingRulesVerifiedReason defines the reasons for the MappingRulesVerified condition of VM import +k8s:openapi-gen=true
const ( // MappingRulesVerificationCompleted represents the completion of the mapping rules checking without warnings or errors MappingRulesVerificationCompleted MappingRulesVerifiedReason = "MappingRulesVerificationCompleted" // MappingRulesVerificationFailed represents the violation of the mapping rules MappingRulesVerificationFailed MappingRulesVerifiedReason = "MappingRulesVerificationFailed" // MappingRulesVerificationReportedWarnings represents the existence of warnings as a result of checking the mapping rules MappingRulesVerificationReportedWarnings MappingRulesVerifiedReason = "MappingRulesVerificationReportedWarnings" )
These are valid reasons for the MappingRulesVerified conditions of VM import.
type ObjectIdentifier ¶
type ObjectIdentifier struct { Name string `json:"name"` // +optional Namespace *string `json:"namespace,omitempty"` }
ObjectIdentifier defines how a resource should be identified on kubevirt +k8s:openapi-gen=true
func (*ObjectIdentifier) DeepCopy ¶
func (in *ObjectIdentifier) DeepCopy() *ObjectIdentifier
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectIdentifier.
func (*ObjectIdentifier) DeepCopyInto ¶
func (in *ObjectIdentifier) DeepCopyInto(out *ObjectIdentifier)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OvirtMappings ¶
type OvirtMappings struct { // +optional NetworkMappings *[]ResourceMappingItem `json:"networkMappings,omitempty"` // StorageMappings defines the mapping of storage domains to storage classes // +optional StorageMappings *[]ResourceMappingItem `json:"storageMappings,omitempty"` // DiskMappings defines the mapping of disks to storage classes // DiskMappings.Source.ID represents the disk ID on ovirt (as opposed to disk-attachment ID) // DiskMappings.Source.Name represents the disk alias on ovirt // DiskMappings is respected only when provided in context of a single VM import within VirtualMachineImport // +optional DiskMappings *[]ResourceMappingItem `json:"diskMappings,omitempty"` }
OvirtMappings defines the mappings of ovirt resources to kubevirt +k8s:openapi-gen=true
func (*OvirtMappings) DeepCopy ¶
func (in *OvirtMappings) DeepCopy() *OvirtMappings
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OvirtMappings.
func (*OvirtMappings) DeepCopyInto ¶
func (in *OvirtMappings) DeepCopyInto(out *OvirtMappings)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProcessingConditionReason ¶
type ProcessingConditionReason string
ProcessingConditionReason defines the reasons for the Processing condition of VM import +k8s:openapi-gen=true
const ( // UpdatingSourceVM represents the renaming of source vm to be prefixed with 'imported_' and shutting it down UpdatingSourceVM ProcessingConditionReason = "UpdatingSourceVM" // CreatingTargetVM represents the creation of the VM spec CreatingTargetVM ProcessingConditionReason = "CreatingTargetVM" // CopyingDisks represents the creation of data volumes based on source VM disks CopyingDisks ProcessingConditionReason = "CopyingDisks" // ProcessingCompleted represents the successful import processing ProcessingCompleted ProcessingConditionReason = "ProcessingCompleted" // ProcessingFailed represents failed import processing ProcessingFailed ProcessingConditionReason = "ProcessingFailed" )
These are valid reasons for the Processing conditions of VM import.
type ResourceMapping ¶
type ResourceMapping struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ResourceMappingSpec `json:"spec,omitempty"` Status ResourceMappingStatus `json:"status,omitempty"` }
ResourceMapping is the Schema for the ResourceMappings API +k8s:openapi-gen=true +genclient +kubebuilder:subresource:status
func (*ResourceMapping) DeepCopy ¶
func (in *ResourceMapping) DeepCopy() *ResourceMapping
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMapping.
func (*ResourceMapping) DeepCopyInto ¶
func (in *ResourceMapping) DeepCopyInto(out *ResourceMapping)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceMapping) DeepCopyObject ¶
func (in *ResourceMapping) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ResourceMappingItem ¶
type ResourceMappingItem struct { Source Source `json:"source"` Target ObjectIdentifier `json:"target"` // +optional Type *string `json:"type,omitempty"` }
ResourceMappingItem defines the mapping of a single resource from the provider to kubevirt +k8s:openapi-gen=true
func (*ResourceMappingItem) DeepCopy ¶
func (in *ResourceMappingItem) DeepCopy() *ResourceMappingItem
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMappingItem.
func (*ResourceMappingItem) DeepCopyInto ¶
func (in *ResourceMappingItem) DeepCopyInto(out *ResourceMappingItem)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceMappingList ¶
type ResourceMappingList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ResourceMapping `json:"items"` }
ResourceMappingList contains a list of ResourceMapping
func (*ResourceMappingList) DeepCopy ¶
func (in *ResourceMappingList) DeepCopy() *ResourceMappingList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMappingList.
func (*ResourceMappingList) DeepCopyInto ¶
func (in *ResourceMappingList) DeepCopyInto(out *ResourceMappingList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceMappingList) DeepCopyObject ¶
func (in *ResourceMappingList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ResourceMappingSpec ¶
type ResourceMappingSpec struct { // +optional OvirtMappings *OvirtMappings `json:"ovirt,omitempty"` }
ResourceMappingSpec defines the desired state of ResourceMapping +k8s:openapi-gen=true
func (*ResourceMappingSpec) DeepCopy ¶
func (in *ResourceMappingSpec) DeepCopy() *ResourceMappingSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMappingSpec.
func (*ResourceMappingSpec) DeepCopyInto ¶
func (in *ResourceMappingSpec) DeepCopyInto(out *ResourceMappingSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceMappingStatus ¶
type ResourceMappingStatus struct { }
ResourceMappingStatus defines the observed state of ResourceMapping +k8s:openapi-gen=true
func (*ResourceMappingStatus) DeepCopy ¶
func (in *ResourceMappingStatus) DeepCopy() *ResourceMappingStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMappingStatus.
func (*ResourceMappingStatus) DeepCopyInto ¶
func (in *ResourceMappingStatus) DeepCopyInto(out *ResourceMappingStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Source ¶
type Source struct { // +optional Name *string `json:"name,omitempty"` // +optional ID *string `json:"id,omitempty"` }
Source defines how to identify a resource on the provider, either by ID or by name +k8s:openapi-gen=true
func (*Source) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Source.
func (*Source) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SucceededConditionReason ¶
type SucceededConditionReason string
SucceededConditionReason defines the reasons for the Succeeded condition of VM import +k8s:openapi-gen=true
const ( // ValidationFailed represents a failure to validate the eligibility of the VM for import ValidationFailed SucceededConditionReason = "ValidationFailed" // UpdatingSourceVMFailed represents a failure to stop source VM UpdatingSourceVMFailed SucceededConditionReason = "UpdatingSourceVMFailed" // VMCreationFailed represents a failure to create the VM entity VMCreationFailed SucceededConditionReason = "VMCreationFailed" // DataVolumeCreationFailed represents a failure to create data volumes based on source VM disks DataVolumeCreationFailed SucceededConditionReason = "DataVolumeCreationFailed" // VirtualMachineReady represents the completion of the vm import VirtualMachineReady SucceededConditionReason = "VirtualMachineReady" // VirtualMachineRunning represents the completion of the vm import and vm in running state VirtualMachineRunning SucceededConditionReason = "VirtualMachineRunning" )
These are valid reasons for the Succeeded conditions of VM import.
type ValidConditionReason ¶
type ValidConditionReason string
ValidConditionReason defines the reasons for the Valid condition of VM import +k8s:openapi-gen=true
const ( // ValidationCompleted represents the completion of the vm import resource validating ValidationCompleted ValidConditionReason = "ValidationCompleted" // SecretNotFound represents the nonexistence of the provider's secret SecretNotFound ValidConditionReason = "SecretNotFound" // MappingResourceNotFound represents the nonexistence of the mapping resource MappingResourceNotFound ValidConditionReason = "MappingResourceNotFound" // UnreachableProvider represents a failure to connect to the provider UnreachableProvider ValidConditionReason = "UnreachableProvider" // SourceVmNotFound represents the nonexistence of the source VM SourceVMNotFound ValidConditionReason = "SourceVMNotFound" // IncompleteMappingRules represents the inability to prepare the mapping rules IncompleteMappingRules ValidConditionReason = "IncompleteMappingRules" )
These are valid reasons for the Valid conditions of VM import.
type VirtualMachineImport ¶
type VirtualMachineImport struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec VirtualMachineImportSpec `json:"spec,omitempty"` Status VirtualMachineImportStatus `json:"status,omitempty"` }
VirtualMachineImport is the Schema for the virtualmachineimports API +k8s:openapi-gen=true +genclient +kubebuilder:subresource:status
func (*VirtualMachineImport) DeepCopy ¶
func (in *VirtualMachineImport) DeepCopy() *VirtualMachineImport
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineImport.
func (*VirtualMachineImport) DeepCopyInto ¶
func (in *VirtualMachineImport) DeepCopyInto(out *VirtualMachineImport)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualMachineImport) DeepCopyObject ¶
func (in *VirtualMachineImport) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VirtualMachineImportCondition ¶
type VirtualMachineImportCondition struct { // Type of virtual machine import condition Type VirtualMachineImportConditionType `json:"type"` // Status of the condition, one of True, False, Unknown Status k8sv1.ConditionStatus `json:"status"` // A brief CamelCase string that describes why the VM import process is in current condition status // +optional Reason *string `json:"reason,omitempty"` // A human-readable message indicating details about last transition // +optional Message *string `json:"message,omitempty"` // The last time we got an update on a given condition // +optional LastHeartbeatTime *metav1.Time `json:"lastHeartbeatTime,omitempty"` // The last time the condition transit from one status to another // +optional LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"` }
VirtualMachineImportCondition defines the observed state of VirtualMachineImport conditions +k8s:openapi-gen=true
func (*VirtualMachineImportCondition) DeepCopy ¶
func (in *VirtualMachineImportCondition) DeepCopy() *VirtualMachineImportCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineImportCondition.
func (*VirtualMachineImportCondition) DeepCopyInto ¶
func (in *VirtualMachineImportCondition) DeepCopyInto(out *VirtualMachineImportCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VirtualMachineImportConditionType ¶
type VirtualMachineImportConditionType string
VirtualMachineImportConditionType defines the condition of VM import +k8s:openapi-gen=true
const ( // Succeeded represents status of the VM import process being completed successfully Succeeded VirtualMachineImportConditionType = "Succeeded" // Valid represents the status of the validation of the mapping rules and eligibility of source VM for import Valid VirtualMachineImportConditionType = "Valid" // MappingRulesVerified represents the status of the VM import mapping rules checking MappingRulesVerified VirtualMachineImportConditionType = "MappingRulesVerified" // Processing represents the status of the VM import process while in progress Processing VirtualMachineImportConditionType = "Processing" )
These are valid conditions of of VM import.
type VirtualMachineImportList ¶
type VirtualMachineImportList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []VirtualMachineImport `json:"items"` }
VirtualMachineImportList contains a list of VirtualMachineImport
func (*VirtualMachineImportList) DeepCopy ¶
func (in *VirtualMachineImportList) DeepCopy() *VirtualMachineImportList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineImportList.
func (*VirtualMachineImportList) DeepCopyInto ¶
func (in *VirtualMachineImportList) DeepCopyInto(out *VirtualMachineImportList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualMachineImportList) DeepCopyObject ¶
func (in *VirtualMachineImportList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VirtualMachineImportOvirtSourceSpec ¶
type VirtualMachineImportOvirtSourceSpec struct { VM VirtualMachineImportOvirtSourceVMSpec `json:"vm"` // +optional Mappings *OvirtMappings `json:"mappings,omitempty"` }
VirtualMachineImportOvirtSourceSpec defines the definition of the VM in oVirt and the credentials to oVirt +k8s:openapi-gen=true
func (*VirtualMachineImportOvirtSourceSpec) DeepCopy ¶
func (in *VirtualMachineImportOvirtSourceSpec) DeepCopy() *VirtualMachineImportOvirtSourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineImportOvirtSourceSpec.
func (*VirtualMachineImportOvirtSourceSpec) DeepCopyInto ¶
func (in *VirtualMachineImportOvirtSourceSpec) DeepCopyInto(out *VirtualMachineImportOvirtSourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VirtualMachineImportOvirtSourceVMClusterSpec ¶
type VirtualMachineImportOvirtSourceVMClusterSpec struct { // +optional ID *string `json:"id,omitempty"` // +optional Name *string `json:"name,omitempty"` }
VirtualMachineImportOvirtSourceVMClusterSpec defines the definition of the source cluster of the VM in oVirt +k8s:openapi-gen=true +optional
func (*VirtualMachineImportOvirtSourceVMClusterSpec) DeepCopy ¶
func (in *VirtualMachineImportOvirtSourceVMClusterSpec) DeepCopy() *VirtualMachineImportOvirtSourceVMClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineImportOvirtSourceVMClusterSpec.
func (*VirtualMachineImportOvirtSourceVMClusterSpec) DeepCopyInto ¶
func (in *VirtualMachineImportOvirtSourceVMClusterSpec) DeepCopyInto(out *VirtualMachineImportOvirtSourceVMClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VirtualMachineImportOvirtSourceVMSpec ¶
type VirtualMachineImportOvirtSourceVMSpec struct { // +optional ID *string `json:"id,omitempty"` // +optional Name *string `json:"name,omitempty"` // +optional Cluster *VirtualMachineImportOvirtSourceVMClusterSpec `json:"cluster,omitempty"` }
VirtualMachineImportOvirtSourceVMSpec defines the definition of the VM info in oVirt +k8s:openapi-gen=true
func (*VirtualMachineImportOvirtSourceVMSpec) DeepCopy ¶
func (in *VirtualMachineImportOvirtSourceVMSpec) DeepCopy() *VirtualMachineImportOvirtSourceVMSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineImportOvirtSourceVMSpec.
func (*VirtualMachineImportOvirtSourceVMSpec) DeepCopyInto ¶
func (in *VirtualMachineImportOvirtSourceVMSpec) DeepCopyInto(out *VirtualMachineImportOvirtSourceVMSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VirtualMachineImportSourceSpec ¶
type VirtualMachineImportSourceSpec struct {
Ovirt *VirtualMachineImportOvirtSourceSpec `json:"ovirt,omitempty"`
}
VirtualMachineImportSourceSpec defines the definition of the source provider and mapping resources +k8s:openapi-gen=true +optional
func (*VirtualMachineImportSourceSpec) DeepCopy ¶
func (in *VirtualMachineImportSourceSpec) DeepCopy() *VirtualMachineImportSourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineImportSourceSpec.
func (*VirtualMachineImportSourceSpec) DeepCopyInto ¶
func (in *VirtualMachineImportSourceSpec) DeepCopyInto(out *VirtualMachineImportSourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VirtualMachineImportSpec ¶
type VirtualMachineImportSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file // Add custom validation using kubebuilder tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html ProviderCredentialsSecret ObjectIdentifier `json:"providerCredentialsSecret"` ResourceMapping *ObjectIdentifier `json:"resourceMapping,omitempty"` Source VirtualMachineImportSourceSpec `json:"source"` // +optional TargetVMName *string `json:"targetVmName,omitempty"` // +optional StartVM *bool `json:"startVm,omitempty"` }
VirtualMachineImportSpec defines the desired state of VirtualMachineImport +k8s:openapi-gen=true
func (*VirtualMachineImportSpec) DeepCopy ¶
func (in *VirtualMachineImportSpec) DeepCopy() *VirtualMachineImportSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineImportSpec.
func (*VirtualMachineImportSpec) DeepCopyInto ¶
func (in *VirtualMachineImportSpec) DeepCopyInto(out *VirtualMachineImportSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VirtualMachineImportStatus ¶
type VirtualMachineImportStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file // Add custom validation using kubebuilder tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html TargetVMName string `json:"targetVmName"` Conditions []VirtualMachineImportCondition `json:"conditions"` DataVolumes []DataVolumeItem `json:"dataVolumes"` }
VirtualMachineImportStatus defines the observed state of VirtualMachineImport +k8s:openapi-gen=true
func (*VirtualMachineImportStatus) DeepCopy ¶
func (in *VirtualMachineImportStatus) DeepCopy() *VirtualMachineImportStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineImportStatus.
func (*VirtualMachineImportStatus) DeepCopyInto ¶
func (in *VirtualMachineImportStatus) DeepCopyInto(out *VirtualMachineImportStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.