Documentation ¶
Index ¶
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Condition
- type ConditionType
- type VirtualMachineClone
- type VirtualMachineCloneList
- type VirtualMachineClonePhase
- type VirtualMachineCloneSpec
- type VirtualMachineCloneStatus
- type VirtualMachineCloneTemplateFilters
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: clone.GroupName, Version: clone.LatestVersion} VirtualMachineCloneKind = schema.GroupVersionKind{Group: clone.GroupName, Version: clone.LatestVersion, Kind: clone.Kind} VirtualMachineCloneListKind = schema.GroupVersionKind{Group: clone.GroupName, Version: clone.LatestVersion, Kind: clone.ListKind} )
var ( // SchemeBuilder initializes a scheme builder SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Condition ¶
type Condition struct { Type ConditionType `json:"type"` Status corev1.ConditionStatus `json:"status"` // +optional // +nullable LastProbeTime metav1.Time `json:"lastProbeTime,omitempty"` // +optional // +nullable LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` // +optional Reason string `json:"reason,omitempty"` // +optional Message string `json:"message,omitempty"` }
Condition defines conditions
func (*Condition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Condition) SwaggerDoc ¶
type ConditionType ¶
type ConditionType string
ConditionType is the const type for Conditions
const ( // ConditionReady is the "ready" condition type ConditionReady ConditionType = "Ready" // ConditionProgressing is the "progressing" condition type ConditionProgressing ConditionType = "Progressing" )
type VirtualMachineClone ¶
type VirtualMachineClone struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec VirtualMachineCloneSpec `json:"spec" valid:"required"` Status VirtualMachineCloneStatus `json:"status,omitempty"` }
VirtualMachineClone is a CRD that clones one VM into another.
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true +genclient
func (*VirtualMachineClone) DeepCopy ¶
func (in *VirtualMachineClone) DeepCopy() *VirtualMachineClone
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineClone.
func (*VirtualMachineClone) DeepCopyInto ¶
func (in *VirtualMachineClone) DeepCopyInto(out *VirtualMachineClone)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualMachineClone) DeepCopyObject ¶
func (in *VirtualMachineClone) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (VirtualMachineClone) SwaggerDoc ¶
func (VirtualMachineClone) SwaggerDoc() map[string]string
type VirtualMachineCloneList ¶
type VirtualMachineCloneList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // +listType=atomic Items []VirtualMachineClone `json:"items"` }
VirtualMachineCloneList is a list of MigrationPolicy
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*VirtualMachineCloneList) DeepCopy ¶
func (in *VirtualMachineCloneList) DeepCopy() *VirtualMachineCloneList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineCloneList.
func (*VirtualMachineCloneList) DeepCopyInto ¶
func (in *VirtualMachineCloneList) DeepCopyInto(out *VirtualMachineCloneList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualMachineCloneList) DeepCopyObject ¶
func (in *VirtualMachineCloneList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (VirtualMachineCloneList) SwaggerDoc ¶
func (VirtualMachineCloneList) SwaggerDoc() map[string]string
type VirtualMachineClonePhase ¶
type VirtualMachineClonePhase string
const ( PhaseUnset VirtualMachineClonePhase = "" SnapshotInProgress VirtualMachineClonePhase = "SnapshotInProgress" CreatingTargetVM VirtualMachineClonePhase = "CreatingTargetVM" RestoreInProgress VirtualMachineClonePhase = "RestoreInProgress" Succeeded VirtualMachineClonePhase = "Succeeded" Failed VirtualMachineClonePhase = "Failed" Unknown VirtualMachineClonePhase = "Unknown" )
type VirtualMachineCloneSpec ¶
type VirtualMachineCloneSpec struct { // Source is the object that would be cloned. Currently supported source types are: // VirtualMachine of kubevirt.io API group, // VirtualMachineSnapshot of snapshot.kubevirt.io API group Source *corev1.TypedLocalObjectReference `json:"source"` // Target is the outcome of the cloning process. // Currently supported source types are: // - VirtualMachine of kubevirt.io API group // - Empty (nil). // If the target is not provided, the target type would default to VirtualMachine and a random // name would be generated for the target. The target's name can be viewed by // inspecting status "TargetName" field below. // +optional Target *corev1.TypedLocalObjectReference `json:"target,omitempty"` // Example use: "!some/key*". // For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. // +optional // +listType=atomic AnnotationFilters []string `json:"annotationFilters,omitempty"` // Example use: "!some/key*". // For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. // +optional // +listType=atomic LabelFilters []string `json:"labelFilters,omitempty"` // For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. // +optional Template VirtualMachineCloneTemplateFilters `json:"template,omitempty"` // NewMacAddresses manually sets that target interfaces' mac addresses. The key is the interface name and the // value is the new mac address. If this field is not specified, a new MAC address will // be generated automatically, as for any interface that is not included in this map. // +optional NewMacAddresses map[string]string `json:"newMacAddresses,omitempty"` // NewSMBiosSerial manually sets that target's SMbios serial. If this field is not specified, a new serial will // be generated automatically. // +optional NewSMBiosSerial *string `json:"newSMBiosSerial,omitempty"` }
func (*VirtualMachineCloneSpec) DeepCopy ¶
func (in *VirtualMachineCloneSpec) DeepCopy() *VirtualMachineCloneSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineCloneSpec.
func (*VirtualMachineCloneSpec) DeepCopyInto ¶
func (in *VirtualMachineCloneSpec) DeepCopyInto(out *VirtualMachineCloneSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VirtualMachineCloneSpec) SwaggerDoc ¶
func (VirtualMachineCloneSpec) SwaggerDoc() map[string]string
type VirtualMachineCloneStatus ¶
type VirtualMachineCloneStatus struct { // +optional // +nullable CreationTime *metav1.Time `json:"creationTime,omitempty"` // +optional Phase VirtualMachineClonePhase `json:"phase,omitempty"` // +optional // +listType=atomic Conditions []Condition `json:"conditions,omitempty"` // +optional // +nullable SnapshotName *string `json:"snapshotName,omitempty"` // +optional // +nullable RestoreName *string `json:"restoreName,omitempty"` // +optional // +nullable TargetName *string `json:"targetName,omitempty"` }
func (*VirtualMachineCloneStatus) DeepCopy ¶
func (in *VirtualMachineCloneStatus) DeepCopy() *VirtualMachineCloneStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineCloneStatus.
func (*VirtualMachineCloneStatus) DeepCopyInto ¶
func (in *VirtualMachineCloneStatus) DeepCopyInto(out *VirtualMachineCloneStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VirtualMachineCloneStatus) SwaggerDoc ¶
func (VirtualMachineCloneStatus) SwaggerDoc() map[string]string
type VirtualMachineCloneTemplateFilters ¶ added in v1.2.0
type VirtualMachineCloneTemplateFilters struct { // Example use: "!some/key*". // For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. // +optional // +listType=atomic AnnotationFilters []string `json:"annotationFilters,omitempty"` // Example use: "!some/key*". // For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. // +optional // +listType=atomic LabelFilters []string `json:"labelFilters,omitempty"` }
func (*VirtualMachineCloneTemplateFilters) DeepCopy ¶ added in v1.2.0
func (in *VirtualMachineCloneTemplateFilters) DeepCopy() *VirtualMachineCloneTemplateFilters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineCloneTemplateFilters.
func (*VirtualMachineCloneTemplateFilters) DeepCopyInto ¶ added in v1.2.0
func (in *VirtualMachineCloneTemplateFilters) DeepCopyInto(out *VirtualMachineCloneTemplateFilters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VirtualMachineCloneTemplateFilters) SwaggerDoc ¶ added in v1.2.0
func (VirtualMachineCloneTemplateFilters) SwaggerDoc() map[string]string