v1alpha1

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

Index

Constants

This section is empty.

Variables

View Source
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
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: virt.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type CPU

type CPU struct {
	Sockets               uint32 `json:"sockets,omitempty"`
	CoresPerSocket        uint32 `json:"coresPerSocket,omitempty"`
	DedicatedCPUPlacement bool   `json:"dedicatedCPUPlacement,omitempty"`
}

func (*CPU) DeepCopy

func (in *CPU) DeepCopy() *CPU

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

func (*CPU) DeepCopyInto

func (in *CPU) DeepCopyInto(out *CPU)

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

type CloudInitVolumeSource

type CloudInitVolumeSource struct {
	UserData              string `json:"userData,omitempty"`
	UserDataBase64        string `json:"userDataBase64,omitempty"`
	UserDataSecretName    string `json:"userDataSecretName,omitempty"`
	NetworkData           string `json:"networkData,omitempty"`
	NetworkDataBase64     string `json:"networkDataBase64,omitempty"`
	NetworkDataSecretName string `json:"networkDataSecretName,omitempty"`
}

func (*CloudInitVolumeSource) DeepCopy

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

func (*CloudInitVolumeSource) DeepCopyInto

func (in *CloudInitVolumeSource) DeepCopyInto(out *CloudInitVolumeSource)

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

type ContainerDiskVolumeSource

type ContainerDiskVolumeSource struct {
	Image           string            `json:"image"`
	ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
}

func (*ContainerDiskVolumeSource) DeepCopy

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

func (*ContainerDiskVolumeSource) DeepCopyInto

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

type ContainerRootfsVolumeSource

type ContainerRootfsVolumeSource struct {
	Image           string            `json:"image"`
	ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
	Size            resource.Quantity `json:"size"`
}

func (*ContainerRootfsVolumeSource) DeepCopy

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

func (*ContainerRootfsVolumeSource) DeepCopyInto

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

type DataVolumeVolumeSource added in v0.8.0

type DataVolumeVolumeSource struct {
	Hotpluggable bool   `json:"hotpluggable,omitempty"`
	VolumeName   string `json:"volumeName"`
}

func (*DataVolumeVolumeSource) DeepCopy added in v0.8.0

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

func (*DataVolumeVolumeSource) DeepCopyInto added in v0.8.0

func (in *DataVolumeVolumeSource) DeepCopyInto(out *DataVolumeVolumeSource)

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

type Disk

type Disk struct {
	Name     string `json:"name"`
	ReadOnly *bool  `json:"readOnly,omitempty"`
}

func (*Disk) DeepCopy

func (in *Disk) DeepCopy() *Disk

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

func (*Disk) DeepCopyInto

func (in *Disk) DeepCopyInto(out *Disk)

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

type FileSystem added in v0.11.0

type FileSystem struct {
	Name string `json:"name"`
}

func (*FileSystem) DeepCopy added in v0.11.0

func (in *FileSystem) DeepCopy() *FileSystem

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

func (*FileSystem) DeepCopyInto added in v0.11.0

func (in *FileSystem) DeepCopyInto(out *FileSystem)

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

type HotplugVolumeStatus added in v0.14.0

type HotplugVolumeStatus struct {
	VolumePodName string    `json:"volumePodName,omitempty"`
	VolumePodUID  types.UID `json:"volumePodUID,omitempty"`
}

func (*HotplugVolumeStatus) DeepCopy added in v0.14.0

func (in *HotplugVolumeStatus) DeepCopy() *HotplugVolumeStatus

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

func (*HotplugVolumeStatus) DeepCopyInto added in v0.14.0

func (in *HotplugVolumeStatus) DeepCopyInto(out *HotplugVolumeStatus)

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

type Hugepages added in v0.12.0

type Hugepages struct {
	// +kubebuilder:default="1Gi"
	// +kubebuilder:validation:Enum="2Mi";"1Gi"
	PageSize string `json:"pageSize,omitempty"`
}

func (*Hugepages) DeepCopy added in v0.12.0

func (in *Hugepages) DeepCopy() *Hugepages

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

func (*Hugepages) DeepCopyInto added in v0.12.0

func (in *Hugepages) DeepCopyInto(out *Hugepages)

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

type Instance

type Instance struct {
	CPU         CPU          `json:"cpu,omitempty"`
	Memory      Memory       `json:"memory,omitempty"`
	Kernel      *Kernel      `json:"kernel,omitempty"`
	Disks       []Disk       `json:"disks,omitempty"`
	FileSystems []FileSystem `json:"fileSystems,omitempty"`
	Interfaces  []Interface  `json:"interfaces,omitempty"`
}

func (*Instance) DeepCopy

func (in *Instance) DeepCopy() *Instance

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

func (*Instance) DeepCopyInto

func (in *Instance) DeepCopyInto(out *Instance)

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

type Interface

type Interface struct {
	Name                   string `json:"name"`
	MAC                    string `json:"mac,omitempty"`
	InterfaceBindingMethod `json:",inline"`
}

func (*Interface) DeepCopy

func (in *Interface) DeepCopy() *Interface

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

func (*Interface) DeepCopyInto

func (in *Interface) DeepCopyInto(out *Interface)

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

type InterfaceBindingMethod added in v0.9.0

type InterfaceBindingMethod struct {
	Bridge     *InterfaceBridge     `json:"bridge,omitempty"`
	Masquerade *InterfaceMasquerade `json:"masquerade,omitempty"`
	SRIOV      *InterfaceSRIOV      `json:"sriov,omitempty"`
	VDPA       *InterfaceVDPA       `json:"vdpa,omitempty"`
	VhostUser  *InterfaceVhostUser  `json:"vhostUser,omitempty"`
}

func (*InterfaceBindingMethod) DeepCopy added in v0.9.0

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

func (*InterfaceBindingMethod) DeepCopyInto added in v0.9.0

func (in *InterfaceBindingMethod) DeepCopyInto(out *InterfaceBindingMethod)

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

type InterfaceBridge added in v0.9.0

type InterfaceBridge struct {
}

func (*InterfaceBridge) DeepCopy added in v0.9.0

func (in *InterfaceBridge) DeepCopy() *InterfaceBridge

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

func (*InterfaceBridge) DeepCopyInto added in v0.9.0

func (in *InterfaceBridge) DeepCopyInto(out *InterfaceBridge)

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

type InterfaceMasquerade added in v0.10.0

type InterfaceMasquerade struct {
	CIDR string `json:"cidr,omitempty"`
}

func (*InterfaceMasquerade) DeepCopy added in v0.10.0

func (in *InterfaceMasquerade) DeepCopy() *InterfaceMasquerade

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

func (*InterfaceMasquerade) DeepCopyInto added in v0.10.0

func (in *InterfaceMasquerade) DeepCopyInto(out *InterfaceMasquerade)

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

type InterfaceSRIOV added in v0.9.0

type InterfaceSRIOV struct {
}

func (*InterfaceSRIOV) DeepCopy added in v0.9.0

func (in *InterfaceSRIOV) DeepCopy() *InterfaceSRIOV

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

func (*InterfaceSRIOV) DeepCopyInto added in v0.9.0

func (in *InterfaceSRIOV) DeepCopyInto(out *InterfaceSRIOV)

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

type InterfaceVDPA added in v0.16.0

type InterfaceVDPA struct {
	NumQueues int  `json:"numQueues,omitempty"`
	IOMMU     bool `json:"iommu,omitempty"`
}

func (*InterfaceVDPA) DeepCopy added in v0.16.0

func (in *InterfaceVDPA) DeepCopy() *InterfaceVDPA

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

func (*InterfaceVDPA) DeepCopyInto added in v0.16.0

func (in *InterfaceVDPA) DeepCopyInto(out *InterfaceVDPA)

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

type InterfaceVhostUser added in v0.12.0

type InterfaceVhostUser struct {
}

func (*InterfaceVhostUser) DeepCopy added in v0.12.0

func (in *InterfaceVhostUser) DeepCopy() *InterfaceVhostUser

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

func (*InterfaceVhostUser) DeepCopyInto added in v0.12.0

func (in *InterfaceVhostUser) DeepCopyInto(out *InterfaceVhostUser)

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

type Kernel

type Kernel struct {
	Image           string            `json:"image"`
	ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
	Cmdline         string            `json:"cmdline"`
}

func (*Kernel) DeepCopy

func (in *Kernel) DeepCopy() *Kernel

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

func (*Kernel) DeepCopyInto

func (in *Kernel) DeepCopyInto(out *Kernel)

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

type Memory

type Memory struct {
	Size      resource.Quantity `json:"size,omitempty"`
	Hugepages *Hugepages        `json:"hugepages,omitempty"`
}

func (*Memory) DeepCopy

func (in *Memory) DeepCopy() *Memory

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

func (*Memory) DeepCopyInto

func (in *Memory) DeepCopyInto(out *Memory)

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

type MultusNetworkSource

type MultusNetworkSource struct {
	NetworkName string `json:"networkName"`
}

func (*MultusNetworkSource) DeepCopy

func (in *MultusNetworkSource) DeepCopy() *MultusNetworkSource

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

func (*MultusNetworkSource) DeepCopyInto

func (in *MultusNetworkSource) DeepCopyInto(out *MultusNetworkSource)

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

type Network

type Network struct {
	Name          string `json:"name"`
	NetworkSource `json:",inline"`
}

func (*Network) DeepCopy

func (in *Network) DeepCopy() *Network

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

func (*Network) DeepCopyInto

func (in *Network) DeepCopyInto(out *Network)

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

type NetworkSource

type NetworkSource struct {
	Pod    *PodNetworkSource    `json:"pod,omitempty"`
	Multus *MultusNetworkSource `json:"multus,omitempty"`
}

func (*NetworkSource) DeepCopy

func (in *NetworkSource) DeepCopy() *NetworkSource

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

func (*NetworkSource) DeepCopyInto

func (in *NetworkSource) DeepCopyInto(out *NetworkSource)

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

type PersistentVolumeClaimVolumeSource added in v0.8.0

type PersistentVolumeClaimVolumeSource struct {
	Hotpluggable bool   `json:"hotpluggable,omitempty"`
	ClaimName    string `json:"claimName"`
}

func (*PersistentVolumeClaimVolumeSource) DeepCopy added in v0.8.0

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

func (*PersistentVolumeClaimVolumeSource) DeepCopyInto added in v0.8.0

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

type PodNetworkSource

type PodNetworkSource struct {
}

func (*PodNetworkSource) DeepCopy

func (in *PodNetworkSource) DeepCopy() *PodNetworkSource

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

func (*PodNetworkSource) DeepCopyInto

func (in *PodNetworkSource) DeepCopyInto(out *PodNetworkSource)

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

type RunPolicy

type RunPolicy string
const (
	RunPolicyAlways         RunPolicy = "Always"
	RunPolicyRerunOnFailure RunPolicy = "RerunOnFailure"
	RunPolicyOnce           RunPolicy = "Once"
	RunPolicyManual         RunPolicy = "Manual"
	RunPolicyHalted         RunPolicy = "Halted"
)

type VirtualMachine

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

	Spec   VirtualMachineSpec   `json:"spec"`
	Status VirtualMachineStatus `json:"status,omitempty"`
}

VirtualMachine is a specification for a VirtualMachine resource

func (*VirtualMachine) DeepCopy

func (in *VirtualMachine) DeepCopy() *VirtualMachine

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

func (*VirtualMachine) DeepCopyInto

func (in *VirtualMachine) DeepCopyInto(out *VirtualMachine)

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

func (*VirtualMachine) DeepCopyObject

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

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

type VirtualMachineConditionType added in v0.10.0

type VirtualMachineConditionType string
const (
	VirtualMachineMigratable VirtualMachineConditionType = "Migratable"
	VirtualMachineReady      VirtualMachineConditionType = "Ready"
)

type VirtualMachineList

type VirtualMachineList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []VirtualMachine `json:"items"`
}

VirtualMachineList is a list of VirtualMachine resources

func (*VirtualMachineList) DeepCopy

func (in *VirtualMachineList) DeepCopy() *VirtualMachineList

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

func (*VirtualMachineList) DeepCopyInto

func (in *VirtualMachineList) DeepCopyInto(out *VirtualMachineList)

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

func (*VirtualMachineList) DeepCopyObject

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

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

type VirtualMachineMigration added in v0.10.0

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

	Spec   VirtualMachineMigrationSpec   `json:"spec,omitempty"`
	Status VirtualMachineMigrationStatus `json:"status,omitempty"`
}

func (*VirtualMachineMigration) DeepCopy added in v0.10.0

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

func (*VirtualMachineMigration) DeepCopyInto added in v0.10.0

func (in *VirtualMachineMigration) DeepCopyInto(out *VirtualMachineMigration)

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

func (*VirtualMachineMigration) DeepCopyObject added in v0.10.0

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

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

type VirtualMachineMigrationList added in v0.10.0

type VirtualMachineMigrationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []VirtualMachineMigration `json:"items"`
}

func (*VirtualMachineMigrationList) DeepCopy added in v0.10.0

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

func (*VirtualMachineMigrationList) DeepCopyInto added in v0.10.0

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

func (*VirtualMachineMigrationList) DeepCopyObject added in v0.10.0

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

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

type VirtualMachineMigrationPhase added in v0.10.0

type VirtualMachineMigrationPhase string
const (
	VirtualMachineMigrationPending     VirtualMachineMigrationPhase = "Pending"
	VirtualMachineMigrationScheduling  VirtualMachineMigrationPhase = "Scheduling"
	VirtualMachineMigrationScheduled   VirtualMachineMigrationPhase = "Scheduled"
	VirtualMachineMigrationTargetReady VirtualMachineMigrationPhase = "TargetReady"
	VirtualMachineMigrationRunning     VirtualMachineMigrationPhase = "Running"
	VirtualMachineMigrationSent        VirtualMachineMigrationPhase = "Sent"
	VirtualMachineMigrationSucceeded   VirtualMachineMigrationPhase = "Succeeded"
	VirtualMachineMigrationFailed      VirtualMachineMigrationPhase = "Failed"
)

type VirtualMachineMigrationSpec added in v0.10.0

type VirtualMachineMigrationSpec struct {
	VMName string `json:"vmName"`
}

func (*VirtualMachineMigrationSpec) DeepCopy added in v0.10.0

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

func (*VirtualMachineMigrationSpec) DeepCopyInto added in v0.10.0

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

type VirtualMachineMigrationStatus added in v0.10.0

type VirtualMachineMigrationStatus struct {
	Phase          VirtualMachineMigrationPhase `json:"phase,omitempty"`
	SourceNodeName string                       `json:"sourceNodeName,omitempty"`
	TargetNodeName string                       `json:"targetNodeName,omitempty"`
}

func (*VirtualMachineMigrationStatus) DeepCopy added in v0.10.0

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

func (*VirtualMachineMigrationStatus) DeepCopyInto added in v0.10.0

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

type VirtualMachinePhase

type VirtualMachinePhase string
const (
	VirtualMachinePending    VirtualMachinePhase = "Pending"
	VirtualMachineScheduling VirtualMachinePhase = "Scheduling"
	VirtualMachineScheduled  VirtualMachinePhase = "Scheduled"
	VirtualMachineRunning    VirtualMachinePhase = "Running"
	VirtualMachineSucceeded  VirtualMachinePhase = "Succeeded"
	VirtualMachineFailed     VirtualMachinePhase = "Failed"
	VirtualMachineUnknown    VirtualMachinePhase = "Unknown"
)

type VirtualMachinePowerAction

type VirtualMachinePowerAction string
const (
	VirtualMachinePowerOn  VirtualMachinePowerAction = "PowerOn"
	VirtualMachinePowerOff VirtualMachinePowerAction = "PowerOff"
	VirtualMachineShutdown VirtualMachinePowerAction = "Shutdown"
	VirtualMachineReset    VirtualMachinePowerAction = "Reset"
	VirtualMachineReboot   VirtualMachinePowerAction = "Reboot"
	VirtualMachinePause    VirtualMachinePowerAction = "Pause"
	VirtualMachineResume   VirtualMachinePowerAction = "Resume"
)

type VirtualMachineSpec

type VirtualMachineSpec struct {
	NodeSelector   map[string]string           `json:"nodeSelector,omitempty"`
	Affinity       *corev1.Affinity            `json:"affinity,omitempty"`
	Tolerations    []corev1.Toleration         `json:"tolerations,omitempty"`
	Resources      corev1.ResourceRequirements `json:"resources,omitempty"`
	LivenessProbe  *corev1.Probe               `json:"livenessProbe,omitempty"`
	ReadinessProbe *corev1.Probe               `json:"readinessProbe,omitempty"`

	RunPolicy RunPolicy `json:"runPolicy,omitempty"`

	Instance Instance  `json:"instance"`
	Volumes  []Volume  `json:"volumes,omitempty"`
	Networks []Network `json:"networks,omitempty"`
}

VirtualMachineSpec is the spec for a VirtualMachine resource

func (*VirtualMachineSpec) DeepCopy

func (in *VirtualMachineSpec) DeepCopy() *VirtualMachineSpec

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

func (*VirtualMachineSpec) DeepCopyInto

func (in *VirtualMachineSpec) DeepCopyInto(out *VirtualMachineSpec)

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

type VirtualMachineStatus

type VirtualMachineStatus struct {
	Phase        VirtualMachinePhase            `json:"phase,omitempty"`
	VMPodName    string                         `json:"vmPodName,omitempty"`
	VMPodUID     types.UID                      `json:"vmPodUID,omitempty"`
	NodeName     string                         `json:"nodeName,omitempty"`
	PowerAction  VirtualMachinePowerAction      `json:"powerAction,omitempty"`
	Migration    *VirtualMachineStatusMigration `json:"migration,omitempty"`
	Conditions   []metav1.Condition             `json:"conditions,omitempty"`
	VolumeStatus []VolumeStatus                 `json:"volumeStatus,omitempty"`
}

VirtualMachineStatus is the status for a VirtualMachine resource

func (*VirtualMachineStatus) DeepCopy

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

func (*VirtualMachineStatus) DeepCopyInto

func (in *VirtualMachineStatus) DeepCopyInto(out *VirtualMachineStatus)

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

type VirtualMachineStatusMigration added in v0.10.0

type VirtualMachineStatusMigration struct {
	UID                types.UID                    `json:"uid,omitempty"`
	Phase              VirtualMachineMigrationPhase `json:"phase,omitempty"`
	TargetNodeName     string                       `json:"targetNodeName,omitempty"`
	TargetNodeIP       string                       `json:"targetNodeIP,omitempty"`
	TargetNodePort     int                          `json:"targetNodePort,omitempty"`
	TargetVMPodName    string                       `json:"targetVMPodName,omitempty"`
	TargetVMPodUID     types.UID                    `json:"targetVMPodUID,omitempty"`
	TargetVolumePodUID types.UID                    `json:"targetVolumePodUID,omitempty"`
}

func (*VirtualMachineStatusMigration) DeepCopy added in v0.10.0

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

func (*VirtualMachineStatusMigration) DeepCopyInto added in v0.10.0

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

type Volume

type Volume struct {
	Name         string `json:"name"`
	VolumeSource `json:",inline"`
}

func (*Volume) DeepCopy

func (in *Volume) DeepCopy() *Volume

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

func (*Volume) DeepCopyInto

func (in *Volume) DeepCopyInto(out *Volume)

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

func (*Volume) IsHotpluggable added in v0.14.0

func (v *Volume) IsHotpluggable() bool

func (*Volume) PVCName added in v0.14.0

func (v *Volume) PVCName() string

type VolumePhase added in v0.14.0

type VolumePhase string
const (
	VolumePending        VolumePhase = "Pending"
	VolumeAttachedToNode VolumePhase = "AttachedToNode"
	VolumeMountedToPod   VolumePhase = "MountedToPod"
	VolumeReady          VolumePhase = "Ready"
	VolumeDetaching      VolumePhase = "Detaching"
)

type VolumeSource

type VolumeSource struct {
	ContainerDisk         *ContainerDiskVolumeSource         `json:"containerDisk,omitempty"`
	CloudInit             *CloudInitVolumeSource             `json:"cloudInit,omitempty"`
	ContainerRootfs       *ContainerRootfsVolumeSource       `json:"containerRootfs,omitempty"`
	PersistentVolumeClaim *PersistentVolumeClaimVolumeSource `json:"persistentVolumeClaim,omitempty"`
	DataVolume            *DataVolumeVolumeSource            `json:"dataVolume,omitempty"`
}

func (*VolumeSource) DeepCopy

func (in *VolumeSource) DeepCopy() *VolumeSource

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

func (*VolumeSource) DeepCopyInto

func (in *VolumeSource) DeepCopyInto(out *VolumeSource)

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

type VolumeStatus added in v0.14.0

type VolumeStatus struct {
	Name          string               `json:"name"`
	Phase         VolumePhase          `json:"phase,omitempty"`
	HotplugVolume *HotplugVolumeStatus `json:"hotplugVolume,omitempty"`
}

func (*VolumeStatus) DeepCopy added in v0.14.0

func (in *VolumeStatus) DeepCopy() *VolumeStatus

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

func (*VolumeStatus) DeepCopyInto added in v0.14.0

func (in *VolumeStatus) DeepCopyInto(out *VolumeStatus)

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