v1alpha1

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
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

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 {
	// NetworkMappings defines the mapping of vnic profile to network attachment definition
	// When providing source network by name, the format is 'network name/vnic profile name'.
	// When providing source network by ID, the ID represents the vnic profile ID.
	// A logical network from ovirt can be mapped to multiple network attachment definitions
	// on kubevirt by using vnic profile to network attachment definition mapping.
	// +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 (
	// VMTemplateMatching represents the VM template matching process
	VMTemplateMatching ProcessingConditionReason = "VMTemplateMatching"

	// 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"

	// ConvertingGuest represents the guest conversion process
	ConvertingGuest ProcessingConditionReason = "ConvertingGuest"

	// 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

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

func (in *Source) DeepCopy() *Source

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Source.

func (*Source) DeepCopyInto

func (in *Source) DeepCopyInto(out *Source)

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"

	// VMTemplateMatchingFailed represents a failure to match VM template
	VMTemplateMatchingFailed SucceededConditionReason = "VMTemplateMatchingFailed"

	// 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"

	// GuestConversionFailed represents a failure to complete a virt-v2v conversion on the target VM.
	GuestConversionFailed SucceededConditionReason = "GuestConversionFailed"

	// 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 VMImportConfig added in v0.0.2

type VMImportConfig struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   VMImportConfigSpec   `json:"spec,omitempty"`
	Status VMImportConfigStatus `json:"status,omitempty"`
}

VMImportConfig is the Schema for the vmimportconfigs API +kubebuilder:resource:path=vmimportconfigs,scope=Namespaced

func (*VMImportConfig) DeepCopy added in v0.0.2

func (in *VMImportConfig) DeepCopy() *VMImportConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMImportConfig.

func (*VMImportConfig) DeepCopyInto added in v0.0.2

func (in *VMImportConfig) DeepCopyInto(out *VMImportConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VMImportConfig) DeepCopyObject added in v0.0.2

func (in *VMImportConfig) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VMImportConfigList added in v0.0.2

type VMImportConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []VMImportConfig `json:"items"`
}

VMImportConfigList contains a list of VMImportConfig

func (*VMImportConfigList) DeepCopy added in v0.0.2

func (in *VMImportConfigList) DeepCopy() *VMImportConfigList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMImportConfigList.

func (*VMImportConfigList) DeepCopyInto added in v0.0.2

func (in *VMImportConfigList) DeepCopyInto(out *VMImportConfigList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VMImportConfigList) DeepCopyObject added in v0.0.2

func (in *VMImportConfigList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VMImportConfigSpec added in v0.0.2

type VMImportConfigSpec struct {
	ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"`

	// Rules on which nodes controller pod(s) will be scheduled
	// +optional
	Infra sdkapi.NodePlacement `json:"infra,omitempty"`
}

VMImportConfigSpec defines the desired state of VMImportConfig

func (*VMImportConfigSpec) DeepCopy added in v0.0.2

func (in *VMImportConfigSpec) DeepCopy() *VMImportConfigSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMImportConfigSpec.

func (*VMImportConfigSpec) DeepCopyInto added in v0.0.2

func (in *VMImportConfigSpec) DeepCopyInto(out *VMImportConfigSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VMImportConfigStatus added in v0.0.2

type VMImportConfigStatus struct {
	// +optional
	Conditions []conditions.Condition `json:"conditions,omitempty" optional:"true"`
	// +optional
	OperatorVersion string `json:"operatorVersion,omitempty" optional:"true"`
	// +optional
	TargetVersion string `json:"targetVersion,omitempty" optional:"true"`
	// +optional
	ObservedVersion string `json:"observedVersion,omitempty" optional:"true"`
	// +optional
	Phase VMImportPhase `json:"phase,omitempty"`
}

VMImportConfigStatus defines the observed state of VMImportConfig

func (*VMImportConfigStatus) DeepCopy added in v0.0.2

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMImportConfigStatus.

func (*VMImportConfigStatus) DeepCopyInto added in v0.0.2

func (in *VMImportConfigStatus) DeepCopyInto(out *VMImportConfigStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VMImportPhase added in v0.0.3

type VMImportPhase string

VMImportPhase is the current phase of the VMImport deployment

const (
	// PhaseDeploying signals that the resources are being deployed
	PhaseDeploying VMImportPhase = "Deploying"

	// PhaseDeployed signals that the resources are successfully deployed
	PhaseDeployed VMImportPhase = "Deployed"

	// PhaseDeleting signals that the resources are being removed
	PhaseDeleting VMImportPhase = "Deleting"

	// PhaseDeleted signals that the resources are deleted
	PhaseDeleted VMImportPhase = "Deleted"

	// PhaseError signals that the deployment is in an error state
	PhaseError VMImportPhase = "Error"

	// PhaseUpgrading signals that the resources are being deployed
	PhaseUpgrading VMImportPhase = "Upgrading"

	// PhaseEmpty is an uninitialized phase
	PhaseEmpty VMImportPhase = ""

	// UpgradeStartedReason signals that upgrdade started
	UpgradeStartedReason = "UpgradeStarted"
)

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"

	// ResourceMappingNotFound represents the nonexistence of the mapping resource
	ResourceMappingNotFound ValidConditionReason = "ResourceMappingNotFound"

	// UninitializedProvider represents a failure to initialize the provider
	UninitializedProvider ValidConditionReason = "UninitializedProvider"

	// 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

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineImportCondition.

func (*VirtualMachineImportCondition) DeepCopyInto

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

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 mapping resources and the VM identity for oVirt source provider +k8s:openapi-gen=true

func (*VirtualMachineImportOvirtSourceSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineImportOvirtSourceSpec.

func (*VirtualMachineImportOvirtSourceSpec) DeepCopyInto

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 source cluster's identity of the VM in oVirt +k8s:openapi-gen=true +optional

func (*VirtualMachineImportOvirtSourceVMClusterSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineImportOvirtSourceVMClusterSpec.

func (*VirtualMachineImportOvirtSourceVMClusterSpec) DeepCopyInto

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 how to identify the VM in oVirt +k8s:openapi-gen=true

func (*VirtualMachineImportOvirtSourceVMSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineImportOvirtSourceVMSpec.

func (*VirtualMachineImportOvirtSourceVMSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VirtualMachineImportSourceSpec

type VirtualMachineImportSourceSpec struct {
	// +optional
	Ovirt *VirtualMachineImportOvirtSourceSpec `json:"ovirt,omitempty"`
}

VirtualMachineImportSourceSpec defines the source provider and the internal mapping resources +k8s:openapi-gen=true

func (*VirtualMachineImportSourceSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineImportSourceSpec.

func (*VirtualMachineImportSourceSpec) DeepCopyInto

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"`
	// +optional
	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

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
	// +optional
	TargetVMName string `json:"targetVmName"`

	// +optional
	Conditions []VirtualMachineImportCondition `json:"conditions"`

	// +optional
	DataVolumes []DataVolumeItem `json:"dataVolumes"`
}

VirtualMachineImportStatus defines the observed state of VirtualMachineImport +k8s:openapi-gen=true

func (*VirtualMachineImportStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineImportStatus.

func (*VirtualMachineImportStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL