v1alpha1

package
v0.18.2-DeJeune Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

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

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

func (*DataVolumeVolumeSource) DeepCopy

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

func (*DataVolumeVolumeSource) DeepCopyInto

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

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

func (*FileSystem) DeepCopy

func (in *FileSystem) DeepCopy() *FileSystem

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

func (*FileSystem) DeepCopyInto

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

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

func (*HotplugVolumeStatus) DeepCopy

func (in *HotplugVolumeStatus) DeepCopy() *HotplugVolumeStatus

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

func (*HotplugVolumeStatus) DeepCopyInto

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

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

func (*Hugepages) DeepCopy

func (in *Hugepages) DeepCopy() *Hugepages

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

func (*Hugepages) DeepCopyInto

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

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

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

func (*InterfaceBindingMethod) DeepCopyInto

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

type InterfaceBridge struct {
}

func (*InterfaceBridge) DeepCopy

func (in *InterfaceBridge) DeepCopy() *InterfaceBridge

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

func (*InterfaceBridge) DeepCopyInto

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

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

func (*InterfaceMasquerade) DeepCopy

func (in *InterfaceMasquerade) DeepCopy() *InterfaceMasquerade

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

func (*InterfaceMasquerade) DeepCopyInto

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

type InterfaceSRIOV struct {
}

func (*InterfaceSRIOV) DeepCopy

func (in *InterfaceSRIOV) DeepCopy() *InterfaceSRIOV

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

func (*InterfaceSRIOV) DeepCopyInto

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

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

func (*InterfaceVDPA) DeepCopy

func (in *InterfaceVDPA) DeepCopy() *InterfaceVDPA

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

func (*InterfaceVDPA) DeepCopyInto

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

type InterfaceVhostUser struct {
}

func (*InterfaceVhostUser) DeepCopy

func (in *InterfaceVhostUser) DeepCopy() *InterfaceVhostUser

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

func (*InterfaceVhostUser) DeepCopyInto

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

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

func (*PersistentVolumeClaimVolumeSource) DeepCopy

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

func (*PersistentVolumeClaimVolumeSource) DeepCopyInto

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

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

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

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

func (*VirtualMachineMigration) DeepCopyInto

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

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

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

type VirtualMachineMigrationList

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

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

func (*VirtualMachineMigrationList) DeepCopy

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

func (*VirtualMachineMigrationList) DeepCopyInto

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

func (*VirtualMachineMigrationList) DeepCopyObject

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

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

type VirtualMachineMigrationPhase

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

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

func (*VirtualMachineMigrationSpec) DeepCopy

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

func (*VirtualMachineMigrationSpec) DeepCopyInto

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

type VirtualMachineMigrationStatus

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

func (*VirtualMachineMigrationStatus) DeepCopy

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

func (*VirtualMachineMigrationStatus) DeepCopyInto

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 VirtualMachineReplicaSet

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

	Spec   VirtualMachineReplicaSetSpec   `json:"spec"`
	Status VirtualMachineReplicaSetStatus `json:"status,omitempty"`
}

VirtualMachineReplicaSet represents a ReplicaSet of VirtualMachine resources

func (*VirtualMachineReplicaSet) DeepCopy

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

func (*VirtualMachineReplicaSet) DeepCopyInto

func (in *VirtualMachineReplicaSet) DeepCopyInto(out *VirtualMachineReplicaSet)

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

func (*VirtualMachineReplicaSet) DeepCopyObject

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

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

type VirtualMachineReplicaSetCondition

type VirtualMachineReplicaSetCondition struct {
	// Type of VirtualMachineReplicaSet condition
	Type VirtualMachineReplicaSetConditionType `json:"type"`

	// Status of the condition, one of True, False, Unknown
	Status corev1.ConditionStatus `json:"status"`

	// Last time the condition was probed
	LastProbeTime metav1.Time `json:"lastProbeTime,omitempty"`

	// The last time the condition transitioned from one status to another
	// +optional
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`

	// The reason for the condition's last transition
	// +optional
	Reason string `json:"reason,omitempty"`

	// A human readable message indicating details about the transition
	// +optional
	Message string `json:"message,omitempty"`
}

VirtualMachineReplicaSetCondition represents the state of a VirtualMachineReplicaSet at a certain point

func (*VirtualMachineReplicaSetCondition) DeepCopy

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

func (*VirtualMachineReplicaSetCondition) DeepCopyInto

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

type VirtualMachineReplicaSetConditionType

type VirtualMachineReplicaSetConditionType string

VirtualMachineReplicaSetConditionType defines the condition types of a VirtualMachineReplicaSet

const (
	// VirtualMachineReplicaSetReplicaFailure is added when one or more replicas of a VirtualMachineReplicaSet
	// failed to be created or deleted.
	VirtualMachineReplicaSetReplicaFailure VirtualMachineReplicaSetConditionType = "ReplicaFailure"

	// VirtualMachineReplicaSetPaused indicates that the VirtualMachineReplicaSet controller
	// is in a paused state and will not process any changes to the VirtualMachineReplicaSet.
	VirtualMachineReplicaSetPaused VirtualMachineReplicaSetConditionType = "ReplicaPaused"
)

type VirtualMachineReplicaSetList

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

VirtualMachineReplicaSetList contains a list of VirtualMachineReplicaSet

func (*VirtualMachineReplicaSetList) DeepCopy

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

func (*VirtualMachineReplicaSetList) DeepCopyInto

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

func (*VirtualMachineReplicaSetList) DeepCopyObject

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

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

type VirtualMachineReplicaSetSpec

type VirtualMachineReplicaSetSpec struct {
	// Number of desired VirtualMachines. This is a pointer to distinguish between explicit
	// zero and not specified. Defaults to 1.
	// +optional
	Replicas *int32 `json:"replicas,omitempty"`

	// Paused indicates that the VirtualMachineReplicaSet controller is paused.
	// When set to true, changes to the VirtualMachineReplicaSet will not be processed
	// by the controller. This allows for manual deletion/addition of VirtualMachines.
	// +optional
	Paused bool `json:"paused,omitempty"`

	// Label selector for VirtualMachines. Existing VirtualMachines selected by this selector
	// will be the ones affected by this VirtualMachineReplicaSet.
	// +optional
	Selector *metav1.LabelSelector `json:"selector,omitempty"`

	// Template describes the VirtualMachine that will be created.
	Template *VirtualMachineTemplateSpec `json:"template"`
}

VirtualMachineReplicaSetSpec defines the desired state of VirtualMachineReplicaSet

func (*VirtualMachineReplicaSetSpec) DeepCopy

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

func (*VirtualMachineReplicaSetSpec) DeepCopyInto

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

type VirtualMachineReplicaSetStatus

type VirtualMachineReplicaSetStatus struct {
	// Total number of non-terminated VirtualMachines targeted by this VirtualMachineReplicaSet
	// (their labels match the selector).
	// +optional
	Replicas int32 `json:"replicas,omitempty"`

	// The number of ready VirtualMachines targeted by this VirtualMachineReplicaSet.
	// +optional
	ReadyReplicas int32 `json:"readyReplicas,omitempty"`

	// The number of available VirtualMachines (ready for at least minReadySeconds)
	// targeted by this VirtualMachineReplicaSet.
	// +optional
	AvailableReplicas int32 `json:"availableReplicas,omitempty"`

	// ObservedGeneration reflects the generation of the most recently observed VirtualMachineReplicaSet.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// Represents the latest available observations of a VirtualMachineReplicaSet's current state.
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []VirtualMachineReplicaSetCondition `json:"conditions,omitempty"`
}

VirtualMachineReplicaSetStatus represents the current status of a VirtualMachineReplicaSet

func (*VirtualMachineReplicaSetStatus) DeepCopy

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

func (*VirtualMachineReplicaSetStatus) DeepCopyInto

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

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

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

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

func (*VirtualMachineStatusMigration) DeepCopyInto

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

type VirtualMachineTemplateSpec

type VirtualMachineTemplateSpec struct {
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +kubebuilder:pruning:PreserveUnknownFields
	// +nullable
	ObjectMeta metav1.ObjectMeta `json:"metadata,omitempty"`

	// Specification of the desired behavior of the VirtualMachine.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec VirtualMachineSpec `json:"spec"`
}

VirtualMachineTemplateSpec describes the data a VirtualMachine should have when created from a template

func (*VirtualMachineTemplateSpec) DeepCopy

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

func (*VirtualMachineTemplateSpec) DeepCopyInto

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

func (v *Volume) IsHotpluggable() bool

func (*Volume) PVCName

func (v *Volume) PVCName() string

type VolumePhase

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

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

func (*VolumeStatus) DeepCopy

func (in *VolumeStatus) DeepCopy() *VolumeStatus

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

func (*VolumeStatus) DeepCopyInto

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