Documentation
¶
Index ¶
- Constants
- Variables
- func PrepareVMNodeAntiAffinitySelectorRequirement(vm *VirtualMachine) k8sv1.NodeSelectorRequirement
- func RegisterDefaults(scheme *runtime.Scheme) error
- func SetDefaults_CDRomTarget(obj *CDRomTarget)
- func SetDefaults_DiskDevice(obj *DiskDevice)
- func SetDefaults_FeatureAPIC(obj *FeatureAPIC)
- func SetDefaults_FeatureSpinlocks(obj *FeatureSpinlocks)
- func SetDefaults_FeatureState(obj *FeatureState)
- func SetDefaults_FeatureVendorID(obj *FeatureVendorID)
- func SetDefaults_Firmware(obj *Firmware)
- func SetDefaults_FloppyTarget(obj *FloppyTarget)
- func SetDefaults_HPETTimer(obj *HPETTimer)
- func SetDefaults_HypervTimer(obj *HypervTimer)
- func SetDefaults_I6300ESBWatchdog(obj *I6300ESBWatchdog)
- func SetDefaults_KVMTimer(obj *KVMTimer)
- func SetDefaults_PITTimer(obj *PITTimer)
- func SetDefaults_RTCTimer(obj *RTCTimer)
- func SetDefaults_VirtualMachine(obj *VirtualMachine)
- func SetDefaults_Watchdog(obj *Watchdog)
- func SetObjectDefaults_OfflineVirtualMachine(in *OfflineVirtualMachine)
- func SetObjectDefaults_OfflineVirtualMachineList(in *OfflineVirtualMachineList)
- func SetObjectDefaults_VirtualMachine(in *VirtualMachine)
- func SetObjectDefaults_VirtualMachineList(in *VirtualMachineList)
- func SetObjectDefaults_VirtualMachinePreset(in *VirtualMachinePreset)
- func SetObjectDefaults_VirtualMachinePresetList(in *VirtualMachinePresetList)
- func SetObjectDefaults_VirtualMachineReplicaSet(in *VirtualMachineReplicaSet)
- func SetObjectDefaults_VirtualMachineReplicaSetList(in *VirtualMachineReplicaSetList)
- func UpdateAntiAffinityFromVMNode(pod *k8sv1.Pod, vm *VirtualMachine) *k8sv1.Affinity
- type Affinity
- type CDRomTarget
- type CPU
- type Clock
- type ClockOffset
- type ClockOffsetTimezone
- type ClockOffsetUTC
- type CloudInitNoCloudSource
- type Devices
- type Disk
- type DiskDevice
- type DiskTarget
- type DomainSpec
- type EphemeralVolumeSource
- type FeatureAPIC
- type FeatureHyperv
- type FeatureSpinlocks
- type FeatureState
- type FeatureVendorID
- type Features
- type Firmware
- type FloppyTarget
- type HPETTickPolicy
- type HPETTimer
- type HypervTimer
- type I6300ESBWatchdog
- type KVMTimer
- type LunTarget
- type Machine
- type OfflineVirtualMachine
- func (in *OfflineVirtualMachine) DeepCopy() *OfflineVirtualMachine
- func (in *OfflineVirtualMachine) DeepCopyInto(out *OfflineVirtualMachine)
- func (in *OfflineVirtualMachine) DeepCopyObject() runtime.Object
- func (v *OfflineVirtualMachine) GetObjectKind() schema.ObjectKind
- func (v *OfflineVirtualMachine) GetObjectMeta() metav1.Object
- func (OfflineVirtualMachine) SwaggerDoc() map[string]string
- type OfflineVirtualMachineCondition
- type OfflineVirtualMachineConditionType
- type OfflineVirtualMachineList
- type OfflineVirtualMachineSpec
- type OfflineVirtualMachineStatus
- type PITTickPolicy
- type PITTimer
- type RTCTickPolicy
- type RTCTimer
- type RTCTimerTrack
- type RegistryDiskSource
- type ResourceRequirements
- type Spice
- type SpiceInfo
- type SyncEvent
- type Timer
- type TrayState
- type VMPhase
- type VMReplicaSetCondition
- type VMReplicaSetConditionType
- type VMReplicaSetSpec
- type VMReplicaSetStatus
- type VMSelector
- type VMTemplateSpec
- type VirtualMachine
- func NewMinimalVM(vmName string) *VirtualMachine
- func NewMinimalVMWithNS(namespace string, vmName string) *VirtualMachine
- func NewVM(name string, uid types.UID) *VirtualMachine
- func NewVMReferenceFromName(name string) *VirtualMachine
- func NewVMReferenceFromNameWithNS(namespace string, name string) *VirtualMachine
- func (in *VirtualMachine) DeepCopy() *VirtualMachine
- func (in *VirtualMachine) DeepCopyInto(out *VirtualMachine)
- func (in *VirtualMachine) DeepCopyObject() runtime.Object
- func (v *VirtualMachine) GetObjectKind() schema.ObjectKind
- func (v *VirtualMachine) GetObjectMeta() metav1.Object
- func (v *VirtualMachine) IsFinal() bool
- func (v *VirtualMachine) IsReady() bool
- func (v *VirtualMachine) IsRunning() bool
- func (v *VirtualMachine) MarshalBinary() (data []byte, err error)
- func (VirtualMachine) SwaggerDoc() map[string]string
- func (v *VirtualMachine) UnmarshalBinary(data []byte) error
- func (v *VirtualMachine) UnmarshalJSON(data []byte) error
- type VirtualMachineCondition
- type VirtualMachineConditionType
- type VirtualMachineList
- func (in *VirtualMachineList) DeepCopy() *VirtualMachineList
- func (in *VirtualMachineList) DeepCopyInto(out *VirtualMachineList)
- func (in *VirtualMachineList) DeepCopyObject() runtime.Object
- func (vl *VirtualMachineList) GetListMeta() meta.List
- func (vl *VirtualMachineList) GetObjectKind() schema.ObjectKind
- func (VirtualMachineList) SwaggerDoc() map[string]string
- func (vl *VirtualMachineList) UnmarshalJSON(data []byte) error
- type VirtualMachineNetworkInterface
- type VirtualMachinePreset
- func (in *VirtualMachinePreset) DeepCopy() *VirtualMachinePreset
- func (in *VirtualMachinePreset) DeepCopyInto(out *VirtualMachinePreset)
- func (in *VirtualMachinePreset) DeepCopyObject() runtime.Object
- func (v *VirtualMachinePreset) GetObjectKind() schema.ObjectKind
- func (v *VirtualMachinePreset) GetObjectMeta() metav1.Object
- func (VirtualMachinePreset) SwaggerDoc() map[string]string
- type VirtualMachinePresetList
- func (in *VirtualMachinePresetList) DeepCopy() *VirtualMachinePresetList
- func (in *VirtualMachinePresetList) DeepCopyInto(out *VirtualMachinePresetList)
- func (in *VirtualMachinePresetList) DeepCopyObject() runtime.Object
- func (vl *VirtualMachinePresetList) GetListMeta() meta.List
- func (vl *VirtualMachinePresetList) GetObjectKind() schema.ObjectKind
- func (VirtualMachinePresetList) SwaggerDoc() map[string]string
- func (vl *VirtualMachinePresetList) UnmarshalJSON(data []byte) error
- type VirtualMachinePresetSpec
- type VirtualMachineReplicaSet
- func (in *VirtualMachineReplicaSet) DeepCopy() *VirtualMachineReplicaSet
- func (in *VirtualMachineReplicaSet) DeepCopyInto(out *VirtualMachineReplicaSet)
- func (in *VirtualMachineReplicaSet) DeepCopyObject() runtime.Object
- func (v *VirtualMachineReplicaSet) GetObjectKind() schema.ObjectKind
- func (v *VirtualMachineReplicaSet) GetObjectMeta() metav1.Object
- func (VirtualMachineReplicaSet) SwaggerDoc() map[string]string
- func (v *VirtualMachineReplicaSet) UnmarshalJSON(data []byte) error
- type VirtualMachineReplicaSetList
- func (in *VirtualMachineReplicaSetList) DeepCopy() *VirtualMachineReplicaSetList
- func (in *VirtualMachineReplicaSetList) DeepCopyInto(out *VirtualMachineReplicaSetList)
- func (in *VirtualMachineReplicaSetList) DeepCopyObject() runtime.Object
- func (vl *VirtualMachineReplicaSetList) GetListMeta() meta.List
- func (vl *VirtualMachineReplicaSetList) GetObjectKind() schema.ObjectKind
- func (VirtualMachineReplicaSetList) SwaggerDoc() map[string]string
- func (vl *VirtualMachineReplicaSetList) UnmarshalJSON(data []byte) error
- type VirtualMachineSpec
- type VirtualMachineStatus
- type Volume
- type VolumeSource
- type Watchdog
- type WatchdogAction
- type WatchdogDevice
Constants ¶
const (
// HPETTickPolicyDelay delivers ticks at a constant rate. The guest time will
// be delayed due to the late tick
HPETTickPolicyDelay HPETTickPolicy = "delay"
// HPETTickPolicyCatchup Delivers ticks at a higher rate to catch up with the
// missed tick. The guest time should not be delayed once catchup is complete
HPETTickPolicyCatchup HPETTickPolicy = "catchup"
// HPETTickPolicyMerge merges the missed tick(s) into one tick and inject. The
// guest time may be delayed, depending on how the OS reacts to the merging
// of ticks
HPETTickPolicyMerge HPETTickPolicy = "merge"
// HPETTickPolicyDiscard discards all missed ticks.
HPETTickPolicyDiscard HPETTickPolicy = "discard"
// PITTickPolicyDelay delivers ticks at a constant rate. The guest time will
// be delayed due to the late tick
PITTickPolicyDelay PITTickPolicy = "delay"
// PITTickPolicyCatchup Delivers ticks at a higher rate to catch up with the
// missed tick. The guest time should not be delayed once catchup is complete
PITTickPolicyCatchup PITTickPolicy = "catchup"
// PITTickPolicyDiscard discards all missed ticks.
PITTickPolicyDiscard PITTickPolicy = "discard"
// RTCTickPolicyDelay delivers ticks at a constant rate. The guest time will
// be delayed due to the late tick
RTCTickPolicyDelay RTCTickPolicy = "delay"
// RTCTickPolicyCatchup Delivers ticks at a higher rate to catch up with the
// missed tick. The guest time should not be delayed once catchup is complete
RTCTickPolicyCatchup RTCTickPolicy = "catchup"
)
const (
AppLabel string = "kubevirt.io"
DomainLabel string = "kubevirt.io/domain"
VMUIDLabel string = "kubevirt.io/vmUID"
NodeNameLabel string = "kubevirt.io/nodeName"
)
const DefaultGracePeriodSeconds int64 = 30
const GroupName = "kubevirt.io"
GroupName is the group name use in this package
Variables ¶
var GroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
GroupVersion is group version used to register these objects
var OfflineVirtualMachineGroupVersionKind = schema.GroupVersionKind{Group: GroupName, Version: GroupVersion.Version, Kind: "OfflineVirtualMachine"}
var VMReplicaSetGroupVersionKind = schema.GroupVersionKind{Group: GroupName, Version: GroupVersion.Version, Kind: "VirtualMachineReplicaSet"}
var VirtualMachineGroupVersionKind = schema.GroupVersionKind{Group: GroupName, Version: GroupVersion.Version, Kind: "VirtualMachine"}
GroupVersionKind
var VirtualMachinePresetGroupVersionKind = schema.GroupVersionKind{Group: GroupName, Version: GroupVersion.Version, Kind: "VirtualMachinePreset"}
Functions ¶
func PrepareVMNodeAntiAffinitySelectorRequirement ¶
func PrepareVMNodeAntiAffinitySelectorRequirement(vm *VirtualMachine) k8sv1.NodeSelectorRequirement
Given a VM, create a NodeSelectorTerm with anti-affinity for that VM's node. This is useful for the case when a migration away from a node must occur.
func RegisterDefaults ¶
func RegisterDefaults(scheme *runtime.Scheme) error
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func SetDefaults_CDRomTarget ¶
func SetDefaults_CDRomTarget(obj *CDRomTarget)
func SetDefaults_DiskDevice ¶
func SetDefaults_DiskDevice(obj *DiskDevice)
func SetDefaults_FeatureAPIC ¶
func SetDefaults_FeatureAPIC(obj *FeatureAPIC)
func SetDefaults_FeatureSpinlocks ¶
func SetDefaults_FeatureSpinlocks(obj *FeatureSpinlocks)
func SetDefaults_FeatureState ¶
func SetDefaults_FeatureState(obj *FeatureState)
func SetDefaults_FeatureVendorID ¶
func SetDefaults_FeatureVendorID(obj *FeatureVendorID)
func SetDefaults_Firmware ¶
func SetDefaults_Firmware(obj *Firmware)
func SetDefaults_FloppyTarget ¶
func SetDefaults_FloppyTarget(obj *FloppyTarget)
func SetDefaults_HPETTimer ¶
func SetDefaults_HPETTimer(obj *HPETTimer)
func SetDefaults_HypervTimer ¶
func SetDefaults_HypervTimer(obj *HypervTimer)
func SetDefaults_I6300ESBWatchdog ¶
func SetDefaults_I6300ESBWatchdog(obj *I6300ESBWatchdog)
func SetDefaults_KVMTimer ¶
func SetDefaults_KVMTimer(obj *KVMTimer)
func SetDefaults_PITTimer ¶
func SetDefaults_PITTimer(obj *PITTimer)
func SetDefaults_RTCTimer ¶
func SetDefaults_RTCTimer(obj *RTCTimer)
func SetDefaults_VirtualMachine ¶
func SetDefaults_VirtualMachine(obj *VirtualMachine)
func SetDefaults_Watchdog ¶
func SetDefaults_Watchdog(obj *Watchdog)
func SetObjectDefaults_OfflineVirtualMachine ¶
func SetObjectDefaults_OfflineVirtualMachine(in *OfflineVirtualMachine)
func SetObjectDefaults_OfflineVirtualMachineList ¶
func SetObjectDefaults_OfflineVirtualMachineList(in *OfflineVirtualMachineList)
func SetObjectDefaults_VirtualMachine ¶
func SetObjectDefaults_VirtualMachine(in *VirtualMachine)
func SetObjectDefaults_VirtualMachineList ¶
func SetObjectDefaults_VirtualMachineList(in *VirtualMachineList)
func SetObjectDefaults_VirtualMachinePreset ¶
func SetObjectDefaults_VirtualMachinePreset(in *VirtualMachinePreset)
func SetObjectDefaults_VirtualMachinePresetList ¶
func SetObjectDefaults_VirtualMachinePresetList(in *VirtualMachinePresetList)
func SetObjectDefaults_VirtualMachineReplicaSet ¶
func SetObjectDefaults_VirtualMachineReplicaSet(in *VirtualMachineReplicaSet)
func SetObjectDefaults_VirtualMachineReplicaSetList ¶
func SetObjectDefaults_VirtualMachineReplicaSetList(in *VirtualMachineReplicaSetList)
func UpdateAntiAffinityFromVMNode ¶
func UpdateAntiAffinityFromVMNode(pod *k8sv1.Pod, vm *VirtualMachine) *k8sv1.Affinity
Given a VM, update all NodeSelectorTerms with anti-affinity for that VM's node. This is useful for the case when a migration away from a node must occur. This method returns the full Affinity structure updated the anti affinity terms
Types ¶
type Affinity ¶
type Affinity struct {
// Node affinity support
NodeAffinity *k8sv1.NodeAffinity `json:"nodeAffinity,omitempty"`
}
Affinity groups all the affinity rules related to a VM
func (*Affinity) DeepCopy ¶
func (in *Affinity) DeepCopy() *Affinity
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Affinity.
func (*Affinity) DeepCopyInto ¶
func (in *Affinity) DeepCopyInto(out *Affinity)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Affinity) SwaggerDoc ¶
func (Affinity) SwaggerDoc() map[string]string
type CDRomTarget ¶
type CDRomTarget struct {
// Bus indicates the type of disk device to emulate.
// supported values: virtio, sata, scsi, ide
Bus string `json:"bus,omitempty"`
// ReadOnly
// Defaults to true
ReadOnly *bool `json:"readonly,omitempty"`
// Tray indicates if the tray of the device is open or closed.
// Allowed values are "open" and "closed"
// Defaults to closed
// +optional
Tray TrayState `json:"tray,omitempty"`
}
func (*CDRomTarget) DeepCopy ¶
func (in *CDRomTarget) DeepCopy() *CDRomTarget
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CDRomTarget.
func (*CDRomTarget) DeepCopyInto ¶
func (in *CDRomTarget) DeepCopyInto(out *CDRomTarget)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (CDRomTarget) SwaggerDoc ¶
func (CDRomTarget) SwaggerDoc() map[string]string
type CPU ¶
type CPU struct {
// Cores specifies the number of cores inside the vm.
// Must be a value greater or equal 1.
Cores uint32 `json:"cores,omitempty"`
}
CPU allow specifying the CPU topology
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.
func (CPU) SwaggerDoc ¶
func (CPU) SwaggerDoc() map[string]string
type Clock ¶
type Clock struct {
// ClockOffset allows specifying the UTC offset or the timezone of the guest clock
ClockOffset `json:",inline"`
// Timer specifies whih timers are attached to the vm
Timer *Timer `json:"timer,inline"`
}
Represents the clock and timers of a vm
func (*Clock) DeepCopy ¶
func (in *Clock) DeepCopy() *Clock
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Clock.
func (*Clock) DeepCopyInto ¶
func (in *Clock) DeepCopyInto(out *Clock)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Clock) SwaggerDoc ¶
func (Clock) SwaggerDoc() map[string]string
type ClockOffset ¶
type ClockOffset struct {
// UTC sets the guest clock to UTC on each boot. If an offset is specified,
// guest changes to the clock will be kept during reboots and are not reset.
UTC *ClockOffsetUTC `json:"utc,omitempty"`
// Timezone sets the guest clock to the specified timezone.
// Zone name follows the TZ environment variable format (e.g. 'America/New_York')
Timezone *ClockOffsetTimezone `json:"timezone,omitempty"`
}
Exactly one of its members must be set.
func (*ClockOffset) DeepCopy ¶
func (in *ClockOffset) DeepCopy() *ClockOffset
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClockOffset.
func (*ClockOffset) DeepCopyInto ¶
func (in *ClockOffset) DeepCopyInto(out *ClockOffset)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ClockOffset) SwaggerDoc ¶
func (ClockOffset) SwaggerDoc() map[string]string
type ClockOffsetTimezone ¶
type ClockOffsetTimezone string
ClockOffsetTimezone sets the guest clock to the specified timezone. Zone name follows the TZ environment variable format (e.g. 'America/New_York')
type ClockOffsetUTC ¶
type ClockOffsetUTC struct {
// OffsetSeconds specifies an offset in seconds, relative to UTC. If set,
// guest changes to the clock will be kept during reboots and not reset.
OffsetSeconds *int `json:"offsetSeconds,omitempty"`
}
UTC sets the guest clock to UTC on each boot.
func (*ClockOffsetUTC) DeepCopy ¶
func (in *ClockOffsetUTC) DeepCopy() *ClockOffsetUTC
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClockOffsetUTC.
func (*ClockOffsetUTC) DeepCopyInto ¶
func (in *ClockOffsetUTC) DeepCopyInto(out *ClockOffsetUTC)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ClockOffsetUTC) SwaggerDoc ¶
func (ClockOffsetUTC) SwaggerDoc() map[string]string
type CloudInitNoCloudSource ¶
type CloudInitNoCloudSource struct {
// UserDataSecretRef references a k8s secret that contains NoCloud userdata
// + optional
UserDataSecretRef *v1.LocalObjectReference `json:"secretRef,omitempty"`
// UserDataBase64 contains NoCloud cloud-init userdata as a base64 encoded string
// + optional
UserDataBase64 string `json:"userDataBase64,omitempty"`
// UserData contains NoCloud inline cloud-init userdata
// + optional
UserData string `json:"userData,omitempty"`
}
Represents a cloud-init nocloud user data source More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html
func (*CloudInitNoCloudSource) DeepCopy ¶
func (in *CloudInitNoCloudSource) DeepCopy() *CloudInitNoCloudSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudInitNoCloudSource.
func (*CloudInitNoCloudSource) DeepCopyInto ¶
func (in *CloudInitNoCloudSource) DeepCopyInto(out *CloudInitNoCloudSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (CloudInitNoCloudSource) SwaggerDoc ¶
func (CloudInitNoCloudSource) SwaggerDoc() map[string]string
type Devices ¶
type Devices struct {
// Disks describes disks, cdroms, floppy and luns which are connected to the vm
Disks []Disk `json:"disks,omitempty"`
// Watchdog describes a watchdog device which can be added to the vm
Watchdog *Watchdog `json:"watchdog,omitempty"`
}
func (*Devices) DeepCopy ¶
func (in *Devices) DeepCopy() *Devices
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Devices.
func (*Devices) DeepCopyInto ¶
func (in *Devices) DeepCopyInto(out *Devices)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Devices) SwaggerDoc ¶
func (Devices) SwaggerDoc() map[string]string
type Disk ¶
type Disk struct {
// Name is the device name
Name string `json:"name"`
// Name of the volume which is referenced
// Must match the Name of a Volume.
VolumeName string `json:"volumeName"`
// DiskDevice specifies as which device the disk should be added to the guest
// Defaults to Disk
DiskDevice `json:",inline"`
}
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.
func (Disk) SwaggerDoc ¶
func (Disk) SwaggerDoc() map[string]string
type DiskDevice ¶
type DiskDevice struct {
// Attach a volume as a disk to the vm
Disk *DiskTarget `json:"disk,omitempty"`
// Attach a volume as a LUN to the vm
LUN *LunTarget `json:"lun,omitempty"`
// Attach a volume as a floppy to the vm
Floppy *FloppyTarget `json:"floppy,omitempty"`
// Attach a volume as a cdrom to the vm
CDRom *CDRomTarget `json:"cdrom,omitempty"`
}
Represents the target of a volume to mount. Only one of its members may be specified.
func (*DiskDevice) DeepCopy ¶
func (in *DiskDevice) DeepCopy() *DiskDevice
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiskDevice.
func (*DiskDevice) DeepCopyInto ¶
func (in *DiskDevice) DeepCopyInto(out *DiskDevice)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (DiskDevice) SwaggerDoc ¶
func (DiskDevice) SwaggerDoc() map[string]string
type DiskTarget ¶
type DiskTarget struct {
// Bus indicates the type of disk device to emulate.
// supported values: virtio, sata, scsi, ide
Bus string `json:"bus,omitempty"`
// ReadOnly
// Defaults to false
ReadOnly bool `json:"readonly,omitempty"`
}
func (*DiskTarget) DeepCopy ¶
func (in *DiskTarget) DeepCopy() *DiskTarget
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DiskTarget.
func (*DiskTarget) DeepCopyInto ¶
func (in *DiskTarget) DeepCopyInto(out *DiskTarget)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (DiskTarget) SwaggerDoc ¶
func (DiskTarget) SwaggerDoc() map[string]string
type DomainSpec ¶
type DomainSpec struct {
// Resources describes the Compute Resources required by this vm.
Resources ResourceRequirements `json:"resources,omitempty"`
// CPU allow specified the detailed CPU topology inside the vm.
// +optional
CPU *CPU `json:"cpu,omitempty"`
// Machine type
// +optional
Machine Machine `json:"machine,omitempty"`
// Firmware
// +optional
Firmware *Firmware `json:"firmware,omitempty"`
// Clock sets the clock and timers of the vm.
// +optional
Clock *Clock `json:"clock,omitempty"`
// Features like acpi, apic, hyperv
// +optional
Features *Features `json:"features,omitempty"`
// Devices allows adding disks, network interfaces, ...
Devices Devices `json:"devices"`
}
func NewMinimalDomainSpec ¶
func NewMinimalDomainSpec() DomainSpec
func (*DomainSpec) DeepCopy ¶
func (in *DomainSpec) DeepCopy() *DomainSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DomainSpec.
func (*DomainSpec) DeepCopyInto ¶
func (in *DomainSpec) DeepCopyInto(out *DomainSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (DomainSpec) SwaggerDoc ¶
func (DomainSpec) SwaggerDoc() map[string]string
type EphemeralVolumeSource ¶
type EphemeralVolumeSource struct {
// PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace.
// Directly attached to the vm via qemu.
// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
// +optional
PersistentVolumeClaim *v1.PersistentVolumeClaimVolumeSource `json:"persistentVolumeClaim,omitempty"`
}
func (*EphemeralVolumeSource) DeepCopy ¶
func (in *EphemeralVolumeSource) DeepCopy() *EphemeralVolumeSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EphemeralVolumeSource.
func (*EphemeralVolumeSource) DeepCopyInto ¶
func (in *EphemeralVolumeSource) DeepCopyInto(out *EphemeralVolumeSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (EphemeralVolumeSource) SwaggerDoc ¶
func (EphemeralVolumeSource) SwaggerDoc() map[string]string
type FeatureAPIC ¶
type FeatureAPIC struct {
// Enabled determines if the feature should be enabled or disabled on the guest
// Defaults to true
// +optional
Enabled *bool `json:"enabled,omitempty"`
// EndOfInterrupt enables the end of interrupt notification in the guest
// Defaults to false
// +optional
EndOfInterrupt bool `json:"endOfInterrupt,omitempty"`
}
func (*FeatureAPIC) DeepCopy ¶
func (in *FeatureAPIC) DeepCopy() *FeatureAPIC
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureAPIC.
func (*FeatureAPIC) DeepCopyInto ¶
func (in *FeatureAPIC) DeepCopyInto(out *FeatureAPIC)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (FeatureAPIC) SwaggerDoc ¶
func (FeatureAPIC) SwaggerDoc() map[string]string
type FeatureHyperv ¶
type FeatureHyperv struct {
// Relaxed relaxes constraints on timer
// Defaults to the machine type setting
// +optional
Relaxed *FeatureState `json:"relaxed,omitempty"`
// VAPIC indicates whether virtual APIC is enabled
// Defaults to the machine type setting
// +optional
VAPIC *FeatureState `json:"vapic,omitempty"`
// Spinlocks indicates if spinlocks should be made available to the guest
// +optional
Spinlocks *FeatureSpinlocks `json:"spinlocks,omitempty"`
// VPIndex enables the Virtual Processor Index to help windows identifying virtual processors
// Defaults to the machine type setting
// +optional
VPIndex *FeatureState `json:"vpindex,omitempty"`
// Runtime
// Defaults to the machine type setting
// +optional
Runtime *FeatureState `json:"runtime,omitempty"`
// SyNIC enable Synthetic Interrupt Controller
// Defaults to the machine type setting
// +optional
SyNIC *FeatureState `json:"synic,omitempty"`
// SyNICTimer enable Synthetic Interrupt Controller timer
// Defaults to the machine type setting
// +optional
SyNICTimer *FeatureState `json:"synictimer,omitempty"`
// Reset enables Hyperv reboot/reset for the vm
// Defaults to the machine type setting
// +optional
Reset *FeatureState `json:"reset,omitempty"`
// VendorID allows setting the hypervisor vendor id
// Defaults to the machine type setting
// +optional
VendorID *FeatureVendorID `json:"vendorid,omitempty"`
}
Hyperv specific features
func (*FeatureHyperv) DeepCopy ¶
func (in *FeatureHyperv) DeepCopy() *FeatureHyperv
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureHyperv.
func (*FeatureHyperv) DeepCopyInto ¶
func (in *FeatureHyperv) DeepCopyInto(out *FeatureHyperv)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (FeatureHyperv) SwaggerDoc ¶
func (FeatureHyperv) SwaggerDoc() map[string]string
type FeatureSpinlocks ¶
type FeatureSpinlocks struct {
// Enabled determines if the feature should be enabled or disabled on the guest
// Defaults to true
// +optional
Enabled *bool `json:"enabled,omitempty"`
// Retries indicates the number of retries
// Must be a value greater or equal 4096
// Defaults to 4096
// +optional
Retries *uint32 `json:"spinlocks,omitempty"`
}
func (*FeatureSpinlocks) DeepCopy ¶
func (in *FeatureSpinlocks) DeepCopy() *FeatureSpinlocks
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureSpinlocks.
func (*FeatureSpinlocks) DeepCopyInto ¶
func (in *FeatureSpinlocks) DeepCopyInto(out *FeatureSpinlocks)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (FeatureSpinlocks) SwaggerDoc ¶
func (FeatureSpinlocks) SwaggerDoc() map[string]string
type FeatureState ¶
type FeatureState struct {
// Enabled determines if the feature should be enabled or disabled on the guest
// Defaults to true
// +optional
Enabled *bool `json:"enabled,omitempty"`
}
Represents if a feature is enabled or disabled
func (*FeatureState) DeepCopy ¶
func (in *FeatureState) DeepCopy() *FeatureState
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureState.
func (*FeatureState) DeepCopyInto ¶
func (in *FeatureState) DeepCopyInto(out *FeatureState)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (FeatureState) SwaggerDoc ¶
func (FeatureState) SwaggerDoc() map[string]string
type FeatureVendorID ¶
type FeatureVendorID struct {
// Enabled determines if the feature should be enabled or disabled on the guest
// Defaults to true
// +optional
Enabled *bool `json:"enabled,omitempty"`
// VendorID sets the hypervisor vendor id, visible to the vm
// String up to twelve characters
VendorID string `json:"vendorid, omitempty"`
}
func (*FeatureVendorID) DeepCopy ¶
func (in *FeatureVendorID) DeepCopy() *FeatureVendorID
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureVendorID.
func (*FeatureVendorID) DeepCopyInto ¶
func (in *FeatureVendorID) DeepCopyInto(out *FeatureVendorID)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (FeatureVendorID) SwaggerDoc ¶
func (FeatureVendorID) SwaggerDoc() map[string]string
type Features ¶
type Features struct {
// ACPI enables/disables ACPI insidejsondata guest
// Defaults to enabled
// +optional
ACPI FeatureState `json:"acpi,omitempty"`
// Defaults to the machine type setting
// +optional
APIC *FeatureAPIC `json:"apic,omitempty"`
// Defaults to the machine type setting
// +optional
Hyperv *FeatureHyperv `json:"hyperv,omitempty"`
}
func (*Features) DeepCopy ¶
func (in *Features) DeepCopy() *Features
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Features.
func (*Features) DeepCopyInto ¶
func (in *Features) DeepCopyInto(out *Features)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Features) SwaggerDoc ¶
func (Features) SwaggerDoc() map[string]string
type Firmware ¶
type Firmware struct {
// UUID reported by the vm bios
// Defaults to a random generated uid
UUID types.UID `json:"uuid,omitempty"`
}
func (*Firmware) DeepCopy ¶
func (in *Firmware) DeepCopy() *Firmware
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Firmware.
func (*Firmware) DeepCopyInto ¶
func (in *Firmware) DeepCopyInto(out *Firmware)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Firmware) SwaggerDoc ¶
func (Firmware) SwaggerDoc() map[string]string
type FloppyTarget ¶
type FloppyTarget struct {
// ReadOnly
// Defaults to false
ReadOnly bool `json:"readonly,omitempty"`
// Tray indicates if the tray of the device is open or closed.
// Allowed values are "open" and "closed"
// Defaults to closed
// +optional
Tray TrayState `json:"tray,omitempty"`
}
func (*FloppyTarget) DeepCopy ¶
func (in *FloppyTarget) DeepCopy() *FloppyTarget
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FloppyTarget.
func (*FloppyTarget) DeepCopyInto ¶
func (in *FloppyTarget) DeepCopyInto(out *FloppyTarget)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (FloppyTarget) SwaggerDoc ¶
func (FloppyTarget) SwaggerDoc() map[string]string
type HPETTickPolicy ¶
type HPETTickPolicy string
HPETTickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest
type HPETTimer ¶
type HPETTimer struct {
// TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest
// One of "delay", "catchup", "merge", "discard"
TickPolicy HPETTickPolicy `json:"tickPolicy,omitempty"`
// Enabled set to false makes sure that the machine type or a preset can't add the timer.
// Defaults to true
// +optional
Enabled *bool `json:"present,omitempty"`
}
func (*HPETTimer) DeepCopy ¶
func (in *HPETTimer) DeepCopy() *HPETTimer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HPETTimer.
func (*HPETTimer) DeepCopyInto ¶
func (in *HPETTimer) DeepCopyInto(out *HPETTimer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (HPETTimer) SwaggerDoc ¶
func (HPETTimer) SwaggerDoc() map[string]string
type HypervTimer ¶
type HypervTimer struct {
// Enabled set to false makes sure that the machine type or a preset can't add the timer.
// Defaults to true
// +optional
Enabled *bool `json:"present,omitempty"`
}
func (*HypervTimer) DeepCopy ¶
func (in *HypervTimer) DeepCopy() *HypervTimer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HypervTimer.
func (*HypervTimer) DeepCopyInto ¶
func (in *HypervTimer) DeepCopyInto(out *HypervTimer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (HypervTimer) SwaggerDoc ¶
func (HypervTimer) SwaggerDoc() map[string]string
type I6300ESBWatchdog ¶
type I6300ESBWatchdog struct {
// The action to take. Valid values are poweroff, reset, shutdown.
// Defaults to reset
Action WatchdogAction `json:"action,omitempty"`
}
i6300esb watchdog device
func (*I6300ESBWatchdog) DeepCopy ¶
func (in *I6300ESBWatchdog) DeepCopy() *I6300ESBWatchdog
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new I6300ESBWatchdog.
func (*I6300ESBWatchdog) DeepCopyInto ¶
func (in *I6300ESBWatchdog) DeepCopyInto(out *I6300ESBWatchdog)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (I6300ESBWatchdog) SwaggerDoc ¶
func (I6300ESBWatchdog) SwaggerDoc() map[string]string
type KVMTimer ¶
type KVMTimer struct {
// Enabled set to false makes sure that the machine type or a preset can't add the timer.
// Defaults to true
// +optional
Enabled *bool `json:"present,omitempty"`
}
func (*KVMTimer) DeepCopy ¶
func (in *KVMTimer) DeepCopy() *KVMTimer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KVMTimer.
func (*KVMTimer) DeepCopyInto ¶
func (in *KVMTimer) DeepCopyInto(out *KVMTimer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (KVMTimer) SwaggerDoc ¶
func (KVMTimer) SwaggerDoc() map[string]string
type LunTarget ¶
type LunTarget struct {
// Bus indicates the type of disk device to emulate.
// supported values: virtio, sata, scsi, ide
Bus string `json:"bus,omitempty"`
// ReadOnly
// Defaults to false
ReadOnly bool `json:"readonly,omitempty"`
}
func (*LunTarget) DeepCopy ¶
func (in *LunTarget) DeepCopy() *LunTarget
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LunTarget.
func (*LunTarget) DeepCopyInto ¶
func (in *LunTarget) DeepCopyInto(out *LunTarget)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (LunTarget) SwaggerDoc ¶
func (LunTarget) SwaggerDoc() map[string]string
type Machine ¶
type Machine struct {
// QEMU machine type is the actual chipset of the VM.
Type string `json:"type"`
}
func (*Machine) DeepCopy ¶
func (in *Machine) DeepCopy() *Machine
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Machine.
func (*Machine) DeepCopyInto ¶
func (in *Machine) DeepCopyInto(out *Machine)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Machine) SwaggerDoc ¶
func (Machine) SwaggerDoc() map[string]string
type OfflineVirtualMachine ¶
type OfflineVirtualMachine struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// Spec contains the specification of VirtualMachine created
Spec OfflineVirtualMachineSpec `json:"spec,omitempty"`
// Status holds the current state of the controller and brief information
// about its associated VirtualMachine
Status OfflineVirtualMachineStatus `json:"status,omitempty"`
}
OfflineVirtualMachine handles the VirtualMachines that are not running or are in a stopped state The OfflineVirtualMachine contains the template to create the VirtualMachine. It also mirrors the running state of the created VirtualMachine in its status. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*OfflineVirtualMachine) DeepCopy ¶
func (in *OfflineVirtualMachine) DeepCopy() *OfflineVirtualMachine
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OfflineVirtualMachine.
func (*OfflineVirtualMachine) DeepCopyInto ¶
func (in *OfflineVirtualMachine) DeepCopyInto(out *OfflineVirtualMachine)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OfflineVirtualMachine) DeepCopyObject ¶
func (in *OfflineVirtualMachine) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*OfflineVirtualMachine) GetObjectKind ¶
func (v *OfflineVirtualMachine) GetObjectKind() schema.ObjectKind
GetObjectKind is required to satisfy Object interface
func (*OfflineVirtualMachine) GetObjectMeta ¶
func (v *OfflineVirtualMachine) GetObjectMeta() metav1.Object
GetObjectMeta is required to satisfy ObjectMetaAccessor interface
func (OfflineVirtualMachine) SwaggerDoc ¶
func (OfflineVirtualMachine) SwaggerDoc() map[string]string
type OfflineVirtualMachineCondition ¶
type OfflineVirtualMachineCondition struct {
Type OfflineVirtualMachineConditionType `json:"type"`
Status k8sv1.ConditionStatus `json:"status"`
LastProbeTime metav1.Time `json:"lastProbeTime,omitempty"`
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
Reason string `json:"reason,omitempty"`
Message string `json:"message,omitempty"`
}
OfflineVirtualMachineCondition represents the state of OfflineVirtualMachine
func (*OfflineVirtualMachineCondition) DeepCopy ¶
func (in *OfflineVirtualMachineCondition) DeepCopy() *OfflineVirtualMachineCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OfflineVirtualMachineCondition.
func (*OfflineVirtualMachineCondition) DeepCopyInto ¶
func (in *OfflineVirtualMachineCondition) DeepCopyInto(out *OfflineVirtualMachineCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (OfflineVirtualMachineCondition) SwaggerDoc ¶
func (OfflineVirtualMachineCondition) SwaggerDoc() map[string]string
type OfflineVirtualMachineConditionType ¶
type OfflineVirtualMachineConditionType string
const (
// OfflineVirtualMachineFailure is added in a offline virtual machine when its vm
// fails to be created due to insufficient quota, limit ranges, pod security policy, node selectors,
// etc. or deleted due to kubelet being down or finalizers are failing.
OfflineVirtualMachineFailure OfflineVirtualMachineConditionType = "Failure"
// OfflineVirtualMachineRunning is added in a offline virtual machine when the VM succesfully runs.
// After this condition was added, the VM is up and running.
OfflineVirtualMachineRunning OfflineVirtualMachineConditionType = "Running"
)
type OfflineVirtualMachineList ¶
type OfflineVirtualMachineList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
// Items is a list of OfflineVirtualMachines
Items []OfflineVirtualMachine `json:"items"`
}
OfflineVirtualMachineList is a list of offlinevirtualmachines +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*OfflineVirtualMachineList) DeepCopy ¶
func (in *OfflineVirtualMachineList) DeepCopy() *OfflineVirtualMachineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OfflineVirtualMachineList.
func (*OfflineVirtualMachineList) DeepCopyInto ¶
func (in *OfflineVirtualMachineList) DeepCopyInto(out *OfflineVirtualMachineList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OfflineVirtualMachineList) DeepCopyObject ¶
func (in *OfflineVirtualMachineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (OfflineVirtualMachineList) SwaggerDoc ¶
func (OfflineVirtualMachineList) SwaggerDoc() map[string]string
type OfflineVirtualMachineSpec ¶
type OfflineVirtualMachineSpec struct {
// Running controlls whether the associatied VirtualMachine is created or not
Running bool `json:"Running"`
// Template is the direct specification of VirtualMachine
Template *VMTemplateSpec `json:"Template"`
}
OfflineVirtualMachineSpec describes how the proper OfflineVirtualMachine should look like
func (*OfflineVirtualMachineSpec) DeepCopy ¶
func (in *OfflineVirtualMachineSpec) DeepCopy() *OfflineVirtualMachineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OfflineVirtualMachineSpec.
func (*OfflineVirtualMachineSpec) DeepCopyInto ¶
func (in *OfflineVirtualMachineSpec) DeepCopyInto(out *OfflineVirtualMachineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (OfflineVirtualMachineSpec) SwaggerDoc ¶
func (OfflineVirtualMachineSpec) SwaggerDoc() map[string]string
type OfflineVirtualMachineStatus ¶
type OfflineVirtualMachineStatus struct {
// VirtualMachineName is the name of created VirtualMachine
VirtualMachineName string `json:"VMname,omitempty"`
// Hold the state information of the OfflineVirtualMachine and its VirtualMachine
Conditions []OfflineVirtualMachineCondition `json:"conditions" optional:"true"`
}
OfflineVirtualMachineStatus represents the status returned by the controller to describe how the OfflineVirtualMachine is doing
func (*OfflineVirtualMachineStatus) DeepCopy ¶
func (in *OfflineVirtualMachineStatus) DeepCopy() *OfflineVirtualMachineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OfflineVirtualMachineStatus.
func (*OfflineVirtualMachineStatus) DeepCopyInto ¶
func (in *OfflineVirtualMachineStatus) DeepCopyInto(out *OfflineVirtualMachineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (OfflineVirtualMachineStatus) SwaggerDoc ¶
func (OfflineVirtualMachineStatus) SwaggerDoc() map[string]string
type PITTickPolicy ¶
type PITTickPolicy string
PITTickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest
type PITTimer ¶
type PITTimer struct {
// TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest
// One of "delay", "catchup", "discard"
TickPolicy PITTickPolicy `json:"tickPolicy,omitempty"`
// Enabled set to false makes sure that the machine type or a preset can't add the timer.
// Defaults to true
// +optional
Enabled *bool `json:"present,omitempty"`
}
func (*PITTimer) DeepCopy ¶
func (in *PITTimer) DeepCopy() *PITTimer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PITTimer.
func (*PITTimer) DeepCopyInto ¶
func (in *PITTimer) DeepCopyInto(out *PITTimer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PITTimer) SwaggerDoc ¶
func (PITTimer) SwaggerDoc() map[string]string
type RTCTickPolicy ¶
type RTCTickPolicy string
RTCTickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest
type RTCTimer ¶
type RTCTimer struct {
// TickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest
// One of "delay", "catchup"
TickPolicy RTCTickPolicy `json:"tickPolicy,omitempty"`
// Enabled set to false makes sure that the machine type or a preset can't add the timer.
// Defaults to true
// +optional
Enabled *bool `json:"present,omitempty"`
// Track the guest or the wall clock
Track RTCTimerTrack `json:"track,omitempty"`
}
func (*RTCTimer) DeepCopy ¶
func (in *RTCTimer) DeepCopy() *RTCTimer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RTCTimer.
func (*RTCTimer) DeepCopyInto ¶
func (in *RTCTimer) DeepCopyInto(out *RTCTimer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (RTCTimer) SwaggerDoc ¶
func (RTCTimer) SwaggerDoc() map[string]string
type RTCTimerTrack ¶
type RTCTimerTrack string
RTCTimerTrack specifies from which source to track the time
const (
// TrackGuest tracks the guest time
TrackGuest RTCTimerTrack = "guest"
// TrackWall tracks the host time
TrackWall RTCTimerTrack = "wall"
)
type RegistryDiskSource ¶
type RegistryDiskSource struct {
// Image is the name of the image with the embedded disk
Image string `json:"image"`
}
Represents a docker image with an embedded disk
func (*RegistryDiskSource) DeepCopy ¶
func (in *RegistryDiskSource) DeepCopy() *RegistryDiskSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegistryDiskSource.
func (*RegistryDiskSource) DeepCopyInto ¶
func (in *RegistryDiskSource) DeepCopyInto(out *RegistryDiskSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (RegistryDiskSource) SwaggerDoc ¶
func (RegistryDiskSource) SwaggerDoc() map[string]string
type ResourceRequirements ¶
type ResourceRequirements struct {
// Requests is a description of the initial vm resources.
// Valid resource keys are "memory" and "cpu".
// +optional
Requests v1.ResourceList `json:"requests,omitempty"`
// Limits describes the maximum amount of compute resources allowed.
// Valid resource keys are "memory" and "cpu".
// +optional
Limits v1.ResourceList `json:"limits,omitempty"`
}
func (*ResourceRequirements) DeepCopy ¶
func (in *ResourceRequirements) DeepCopy() *ResourceRequirements
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRequirements.
func (*ResourceRequirements) DeepCopyInto ¶
func (in *ResourceRequirements) DeepCopyInto(out *ResourceRequirements)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ResourceRequirements) SwaggerDoc ¶
func (ResourceRequirements) SwaggerDoc() map[string]string
type Spice ¶
type Spice struct {
metav1.TypeMeta `json:",inline" ini:"-"`
ObjectMeta metav1.ObjectMeta `json:"metadata,omitempty" ini:"-"`
Info SpiceInfo `json:"info,omitempty" valid:"required" ini:"virt-viewer"`
}
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*Spice) DeepCopy ¶
func (in *Spice) DeepCopy() *Spice
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Spice.
func (*Spice) DeepCopyInto ¶
func (in *Spice) DeepCopyInto(out *Spice)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Spice) DeepCopyObject ¶
func (in *Spice) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (Spice) SwaggerDoc ¶
func (Spice) SwaggerDoc() map[string]string
type SpiceInfo ¶
type SpiceInfo struct {
Type string `json:"type" ini:"type"`
Host string `json:"host" ini:"host"`
Port int32 `json:"port" ini:"port"`
Proxy string `json:"proxy,omitempty" ini:"proxy,omitempty"`
}
func (*SpiceInfo) DeepCopy ¶
func (in *SpiceInfo) DeepCopy() *SpiceInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpiceInfo.
func (*SpiceInfo) DeepCopyInto ¶
func (in *SpiceInfo) DeepCopyInto(out *SpiceInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (SpiceInfo) SwaggerDoc ¶
func (SpiceInfo) SwaggerDoc() map[string]string
type SyncEvent ¶
type SyncEvent string
const (
Created SyncEvent = "Created"
Deleted SyncEvent = "Deleted"
PresetFailed SyncEvent = "PresetFailed"
Conflict SyncEvent = "Conflict"
Started SyncEvent = "Started"
ShuttingDown SyncEvent = "ShuttingDown"
Stopped SyncEvent = "Stopped"
SyncFailed SyncEvent = "SyncFailed"
Resumed SyncEvent = "Resumed"
)
type Timer ¶
type Timer struct {
// HPET (High Precision Event Timer) - multiple timers with periodic interrupts.
HPET *HPETTimer `json:"hpet,omitempty"`
// KVM (KVM clock) - lets guests read the host’s wall clock time (paravirtualized). For linux guests.
KVM *KVMTimer `json:"kvm,omitempty"`
// PIT (Programmable Interval Timer) - a timer with periodic interrupts.
PIT *PITTimer `json:"pit,omitempty"`
// RTC (Real Time Clock) - a continuously running timer with periodic interrupts.
RTC *RTCTimer `json:"rtc,omitempty"`
// Hyperv (Hypervclock) - lets guests read the host’s wall clock time (paravirtualized). For windows guests.
Hyperv *HypervTimer `json:"hyperv,omitempty"`
}
Represents all available timers in a vm
func (*Timer) DeepCopy ¶
func (in *Timer) DeepCopy() *Timer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Timer.
func (*Timer) DeepCopyInto ¶
func (in *Timer) DeepCopyInto(out *Timer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Timer) SwaggerDoc ¶
func (Timer) SwaggerDoc() map[string]string
type TrayState ¶
type TrayState string
TrayState indicates if a tray of a cdrom or floppy is open or closed
const (
// TrayStateOpen indicates that the tray of a cdrom or floppy is open
TrayStateOpen TrayState = "open"
// TrayStateClosed indicates that the tray of a cdrom or floppy is closed
TrayStateClosed TrayState = "closed"
)
type VMPhase ¶
type VMPhase string
VMPhase is a label for the condition of a VM at the current time.
const (
//When a VM Object is first initialized and no phase, or Pending is present.
VmPhaseUnset VMPhase = ""
// Pending means the VM has been accepted by the system.
Pending VMPhase = "Pending"
// Either a target pod does not yet exist or a target Pod exists but is not yet scheduled and in running state.
Scheduling VMPhase = "Scheduling"
// A target pod was scheduled and the system saw that Pod in runnig state.
// Here is where the responsibility of virt-controller ends and virt-handler takes over.
Scheduled VMPhase = "Scheduled"
// VMRunning means the pod has been bound to a node and the VM is started.
Running VMPhase = "Running"
// VMMigrating means the VM is currently migrated by a controller.
Migrating VMPhase = "Migrating"
// VMSucceeded means that the VM stopped voluntarily, e.g. reacted to SIGTERM or shutdown was invoked from
// inside the VM.
Succeeded VMPhase = "Succeeded"
// VMFailed means that associated Pod is in failure state (exited with a non-zero exit code or was stopped by
// the system).
Failed VMPhase = "Failed"
// VMUnknown means that for some reason the state of the VM could not be obtained, typically due
// to an error in communicating with the host of the VM.
Unknown VMPhase = "Unknown"
)
These are the valid statuses of pods.
type VMReplicaSetCondition ¶
type VMReplicaSetCondition struct {
Type VMReplicaSetConditionType `json:"type"`
Status k8sv1.ConditionStatus `json:"status"`
LastProbeTime metav1.Time `json:"lastProbeTime,omitempty"`
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
Reason string `json:"reason,omitempty"`
Message string `json:"message,omitempty"`
}
func (*VMReplicaSetCondition) DeepCopy ¶
func (in *VMReplicaSetCondition) DeepCopy() *VMReplicaSetCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMReplicaSetCondition.
func (*VMReplicaSetCondition) DeepCopyInto ¶
func (in *VMReplicaSetCondition) DeepCopyInto(out *VMReplicaSetCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VMReplicaSetCondition) SwaggerDoc ¶
func (VMReplicaSetCondition) SwaggerDoc() map[string]string
type VMReplicaSetConditionType ¶
type VMReplicaSetConditionType string
const (
// VMReplicaSetReplicaFailure is added in a replica set when one of its vms
// fails to be created due to insufficient quota, limit ranges, pod security policy, node selectors,
// etc. or deleted due to kubelet being down or finalizers are failing.
VMReplicaSetReplicaFailure VMReplicaSetConditionType = "ReplicaFailure"
// VMReplicaSetReplicaPaused is added in a replica set when the replica set got paused by the controller.
// After this condition was added, it is safe to remove or add vms by hand and adjust the replica count by hand.
VMReplicaSetReplicaPaused VMReplicaSetConditionType = "ReplicaPaused"
)
type VMReplicaSetSpec ¶
type VMReplicaSetSpec struct {
// Number of desired pods. This is a pointer to distinguish between explicit
// zero and not specified. Defaults to 1.
// +optional
Replicas *int32 `json:"replicas,omitempty"`
// Label selector for pods. Existing ReplicaSets whose pods are
// selected by this will be the ones affected by this deployment.
// +optional
Selector *metav1.LabelSelector `json:"selector,omitempty" valid:"required"`
// Template describes the pods that will be created.
Template *VMTemplateSpec `json:"template" valid:"required"`
// Indicates that the replica set is paused.
// +optional
Paused bool `json:"paused,omitempty" protobuf:"varint,7,opt,name=paused"`
}
func (*VMReplicaSetSpec) DeepCopy ¶
func (in *VMReplicaSetSpec) DeepCopy() *VMReplicaSetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMReplicaSetSpec.
func (*VMReplicaSetSpec) DeepCopyInto ¶
func (in *VMReplicaSetSpec) DeepCopyInto(out *VMReplicaSetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VMReplicaSetSpec) SwaggerDoc ¶
func (VMReplicaSetSpec) SwaggerDoc() map[string]string
type VMReplicaSetStatus ¶
type VMReplicaSetStatus struct {
// Total number of non-terminated pods targeted by this deployment (their labels match the selector).
// +optional
Replicas int32 `json:"replicas,omitempty" protobuf:"varint,2,opt,name=replicas"`
// The number of ready replicas for this replica set.
// +optional
ReadyReplicas int32 `json:"readyReplicas,omitempty" protobuf:"varint,4,opt,name=readyReplicas"`
Conditions []VMReplicaSetCondition `json:"conditions" optional:"true"`
}
func (*VMReplicaSetStatus) DeepCopy ¶
func (in *VMReplicaSetStatus) DeepCopy() *VMReplicaSetStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMReplicaSetStatus.
func (*VMReplicaSetStatus) DeepCopyInto ¶
func (in *VMReplicaSetStatus) DeepCopyInto(out *VMReplicaSetStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VMReplicaSetStatus) SwaggerDoc ¶
func (VMReplicaSetStatus) SwaggerDoc() map[string]string
type VMSelector ¶
type VMSelector struct {
// Name of the VM to migrate
Name string `json:"name" valid:"required"`
}
func (*VMSelector) DeepCopy ¶
func (in *VMSelector) DeepCopy() *VMSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMSelector.
func (*VMSelector) DeepCopyInto ¶
func (in *VMSelector) DeepCopyInto(out *VMSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VMSelector) SwaggerDoc ¶
func (VMSelector) SwaggerDoc() map[string]string
type VMTemplateSpec ¶
type VMTemplateSpec struct {
ObjectMeta metav1.ObjectMeta `json:"metadata,omitempty"`
// VM Spec contains the VM specification.
Spec VirtualMachineSpec `json:"spec,omitempty" valid:"required"`
}
func (*VMTemplateSpec) DeepCopy ¶
func (in *VMTemplateSpec) DeepCopy() *VMTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMTemplateSpec.
func (*VMTemplateSpec) DeepCopyInto ¶
func (in *VMTemplateSpec) DeepCopyInto(out *VMTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VMTemplateSpec) SwaggerDoc ¶
func (VMTemplateSpec) SwaggerDoc() map[string]string
type VirtualMachine ¶
type VirtualMachine struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// VM Spec contains the VM specification.
Spec VirtualMachineSpec `json:"spec,omitempty" valid:"required"`
// Status is the high level overview of how the VM is doing. It contains information available to controllers and users.
Status VirtualMachineStatus `json:"status,omitempty"`
}
VirtualMachine is *the* VM Definition. It represents a virtual machine in the runtime environment of kubernetes. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func NewMinimalVM ¶
func NewMinimalVM(vmName string) *VirtualMachine
func NewMinimalVMWithNS ¶
func NewMinimalVMWithNS(namespace string, vmName string) *VirtualMachine
func NewVMReferenceFromName ¶
func NewVMReferenceFromName(name string) *VirtualMachine
TODO Namespace could be different, also store it somewhere in the domain, so that we can report deletes on handler startup properly
func NewVMReferenceFromNameWithNS ¶
func NewVMReferenceFromNameWithNS(namespace string, name string) *VirtualMachine
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.
func (*VirtualMachine) GetObjectKind ¶
func (v *VirtualMachine) GetObjectKind() schema.ObjectKind
Required to satisfy Object interface
func (*VirtualMachine) GetObjectMeta ¶
func (v *VirtualMachine) GetObjectMeta() metav1.Object
Required to satisfy ObjectMetaAccessor interface
func (*VirtualMachine) MarshalBinary ¶
func (v *VirtualMachine) MarshalBinary() (data []byte, err error)
func (VirtualMachine) SwaggerDoc ¶
func (VirtualMachine) SwaggerDoc() map[string]string
func (*VirtualMachine) UnmarshalBinary ¶
func (v *VirtualMachine) UnmarshalBinary(data []byte) error
func (*VirtualMachine) UnmarshalJSON ¶
func (v *VirtualMachine) UnmarshalJSON(data []byte) error
type VirtualMachineCondition ¶
type VirtualMachineCondition struct {
Type VirtualMachineConditionType `json:"type"`
Status k8sv1.ConditionStatus `json:"status"`
LastProbeTime metav1.Time `json:"lastProbeTime,omitempty"`
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
Reason string `json:"reason,omitempty"`
Message string `json:"message,omitempty"`
}
func (*VirtualMachineCondition) DeepCopy ¶
func (in *VirtualMachineCondition) DeepCopy() *VirtualMachineCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineCondition.
func (*VirtualMachineCondition) DeepCopyInto ¶
func (in *VirtualMachineCondition) DeepCopyInto(out *VirtualMachineCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VirtualMachineCondition) SwaggerDoc ¶
func (VirtualMachineCondition) SwaggerDoc() map[string]string
type VirtualMachineConditionType ¶
type VirtualMachineConditionType string
const (
// VMReady means the pod is able to service requests and should be added to the
// load balancing pools of all matching services.
VirtualMachineReady VirtualMachineConditionType = "Ready"
// If there happens any error while trying to synchronize the VM with the Domain,
// this is reported as false.
VirtualMachineSynchronized VirtualMachineConditionType = "Synchronized"
)
These are valid conditions of VMs.
type VirtualMachineList ¶
type VirtualMachineList struct {
metav1.TypeMeta `json:",inline"`
ListMeta metav1.ListMeta `json:"metadata,omitempty"`
Items []VirtualMachine `json:"items"`
}
VirtualMachineList is a list of VirtualMachines +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
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.
func (*VirtualMachineList) GetListMeta ¶
func (vl *VirtualMachineList) GetListMeta() meta.List
Required to satisfy ListMetaAccessor interface
func (*VirtualMachineList) GetObjectKind ¶
func (vl *VirtualMachineList) GetObjectKind() schema.ObjectKind
Required to satisfy Object interface
func (VirtualMachineList) SwaggerDoc ¶
func (VirtualMachineList) SwaggerDoc() map[string]string
func (*VirtualMachineList) UnmarshalJSON ¶
func (vl *VirtualMachineList) UnmarshalJSON(data []byte) error
type VirtualMachineNetworkInterface ¶
type VirtualMachineNetworkInterface struct {
// IP address of a Virtual Machine interface
IP string `json:"ipAddress,omitempty"`
// Hardware address of a Virtual Machine interface
MAC string `json:"mac,omitempty"`
}
func (*VirtualMachineNetworkInterface) DeepCopy ¶
func (in *VirtualMachineNetworkInterface) DeepCopy() *VirtualMachineNetworkInterface
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineNetworkInterface.
func (*VirtualMachineNetworkInterface) DeepCopyInto ¶
func (in *VirtualMachineNetworkInterface) DeepCopyInto(out *VirtualMachineNetworkInterface)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VirtualMachineNetworkInterface) SwaggerDoc ¶
func (VirtualMachineNetworkInterface) SwaggerDoc() map[string]string
type VirtualMachinePreset ¶
type VirtualMachinePreset struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// VM Spec contains the VM specification.
Spec VirtualMachinePresetSpec `json:"spec,omitempty" valid:"required"`
}
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func NewVirtualMachinePreset ¶
func NewVirtualMachinePreset(name string, selector metav1.LabelSelector) *VirtualMachinePreset
func (*VirtualMachinePreset) DeepCopy ¶
func (in *VirtualMachinePreset) DeepCopy() *VirtualMachinePreset
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachinePreset.
func (*VirtualMachinePreset) DeepCopyInto ¶
func (in *VirtualMachinePreset) DeepCopyInto(out *VirtualMachinePreset)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualMachinePreset) DeepCopyObject ¶
func (in *VirtualMachinePreset) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*VirtualMachinePreset) GetObjectKind ¶
func (v *VirtualMachinePreset) GetObjectKind() schema.ObjectKind
Required to satisfy Object interface
func (*VirtualMachinePreset) GetObjectMeta ¶
func (v *VirtualMachinePreset) GetObjectMeta() metav1.Object
Required to satisfy ObjectMetaAccessor interface
func (VirtualMachinePreset) SwaggerDoc ¶
func (VirtualMachinePreset) SwaggerDoc() map[string]string
type VirtualMachinePresetList ¶
type VirtualMachinePresetList struct {
metav1.TypeMeta `json:",inline"`
ListMeta metav1.ListMeta `json:"metadata,omitempty"`
Items []VirtualMachinePreset `json:"items"`
}
VirtualMachinePresetList is a list of VirtualMachinePresets +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*VirtualMachinePresetList) DeepCopy ¶
func (in *VirtualMachinePresetList) DeepCopy() *VirtualMachinePresetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachinePresetList.
func (*VirtualMachinePresetList) DeepCopyInto ¶
func (in *VirtualMachinePresetList) DeepCopyInto(out *VirtualMachinePresetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualMachinePresetList) DeepCopyObject ¶
func (in *VirtualMachinePresetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*VirtualMachinePresetList) GetListMeta ¶
func (vl *VirtualMachinePresetList) GetListMeta() meta.List
Required to satisfy ListMetaAccessor interface
func (*VirtualMachinePresetList) GetObjectKind ¶
func (vl *VirtualMachinePresetList) GetObjectKind() schema.ObjectKind
Required to satisfy Object interface
func (VirtualMachinePresetList) SwaggerDoc ¶
func (VirtualMachinePresetList) SwaggerDoc() map[string]string
func (*VirtualMachinePresetList) UnmarshalJSON ¶
func (vl *VirtualMachinePresetList) UnmarshalJSON(data []byte) error
type VirtualMachinePresetSpec ¶
type VirtualMachinePresetSpec struct {
// Selector is a label query over a set of VMs.
// Required.
Selector metav1.LabelSelector `json:"selector"`
// Domain is the same object type as contained in VirtualMachineSpec
Domain *DomainSpec `json:"domain,omitempty"`
}
func (*VirtualMachinePresetSpec) DeepCopy ¶
func (in *VirtualMachinePresetSpec) DeepCopy() *VirtualMachinePresetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachinePresetSpec.
func (*VirtualMachinePresetSpec) DeepCopyInto ¶
func (in *VirtualMachinePresetSpec) DeepCopyInto(out *VirtualMachinePresetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VirtualMachinePresetSpec) SwaggerDoc ¶
func (VirtualMachinePresetSpec) SwaggerDoc() map[string]string
type VirtualMachineReplicaSet ¶
type VirtualMachineReplicaSet struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// VM Spec contains the VM specification.
Spec VMReplicaSetSpec `json:"spec,omitempty" valid:"required"`
// Status is the high level overview of how the VM is doing. It contains information available to controllers and users.
Status VMReplicaSetStatus `json:"status,omitempty"`
}
VM is *the* VM Definition. It represents a virtual machine in the runtime environment of kubernetes. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*VirtualMachineReplicaSet) DeepCopy ¶
func (in *VirtualMachineReplicaSet) DeepCopy() *VirtualMachineReplicaSet
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.
func (*VirtualMachineReplicaSet) GetObjectKind ¶
func (v *VirtualMachineReplicaSet) GetObjectKind() schema.ObjectKind
Required to satisfy Object interface
func (*VirtualMachineReplicaSet) GetObjectMeta ¶
func (v *VirtualMachineReplicaSet) GetObjectMeta() metav1.Object
Required to satisfy ObjectMetaAccessor interface
func (VirtualMachineReplicaSet) SwaggerDoc ¶
func (VirtualMachineReplicaSet) SwaggerDoc() map[string]string
func (*VirtualMachineReplicaSet) UnmarshalJSON ¶
func (v *VirtualMachineReplicaSet) UnmarshalJSON(data []byte) error
type VirtualMachineReplicaSetList ¶
type VirtualMachineReplicaSetList struct {
metav1.TypeMeta `json:",inline"`
ListMeta metav1.ListMeta `json:"metadata,omitempty"`
Items []VirtualMachineReplicaSet `json:"items"`
}
VMList is a list of VMs +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*VirtualMachineReplicaSetList) DeepCopy ¶
func (in *VirtualMachineReplicaSetList) DeepCopy() *VirtualMachineReplicaSetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineReplicaSetList.
func (*VirtualMachineReplicaSetList) DeepCopyInto ¶
func (in *VirtualMachineReplicaSetList) DeepCopyInto(out *VirtualMachineReplicaSetList)
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.
func (*VirtualMachineReplicaSetList) GetListMeta ¶
func (vl *VirtualMachineReplicaSetList) GetListMeta() meta.List
Required to satisfy ListMetaAccessor interface
func (*VirtualMachineReplicaSetList) GetObjectKind ¶
func (vl *VirtualMachineReplicaSetList) GetObjectKind() schema.ObjectKind
Required to satisfy Object interface
func (VirtualMachineReplicaSetList) SwaggerDoc ¶
func (VirtualMachineReplicaSetList) SwaggerDoc() map[string]string
func (*VirtualMachineReplicaSetList) UnmarshalJSON ¶
func (vl *VirtualMachineReplicaSetList) UnmarshalJSON(data []byte) error
type VirtualMachineSpec ¶
type VirtualMachineSpec struct {
// Specification of the desired behavior of the VirtualMachine on the host.
Domain DomainSpec `json:"domain"`
// NodeSelector is a selector which must be true for the vm to fit on a node.
// Selector which must match a node's labels for the vm to be scheduled on that node.
// More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
// +optional
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
// If affinity is specifies, obey all the affinity rules
Affinity *Affinity `json:"affinity,omitempty"`
// Grace period observed after signalling a VM to stop after which the VM is force terminated.
TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"`
// List of volumes that can be mounted by disks belonging to the vm.
Volumes []Volume `json:"volumes,omitempty"`
}
VirtualMachineSpec is a description of a VirtualMachine.
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.
func (VirtualMachineSpec) SwaggerDoc ¶
func (VirtualMachineSpec) SwaggerDoc() map[string]string
type VirtualMachineStatus ¶
type VirtualMachineStatus struct {
// NodeName is the name where the VM is currently running.
NodeName string `json:"nodeName,omitempty"`
// Conditions are specific points in VM's pod runtime.
Conditions []VirtualMachineCondition `json:"conditions,omitempty"`
// Phase is the status of the VM in kubernetes world. It is not the VM status, but partially correlates to it.
Phase VMPhase `json:"phase,omitempty"`
// Interfaces represent the details of available network interfaces.
Interfaces []VirtualMachineNetworkInterface `json:"interfaces,omitempty"`
}
VirtualMachineStatus represents information about the status of a VM. Status may trail the actual state of a system.
func (*VirtualMachineStatus) DeepCopy ¶
func (in *VirtualMachineStatus) DeepCopy() *VirtualMachineStatus
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.
func (VirtualMachineStatus) SwaggerDoc ¶
func (VirtualMachineStatus) SwaggerDoc() map[string]string
type Volume ¶
type Volume struct {
// Volume's name.
// Must be a DNS_LABEL and unique within the vm.
// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
Name string `json:"name"`
// VolumeSource represents the location and type of the mounted volume.
// Defaults to Disk, if no type is specified
VolumeSource `json:",inline"`
}
Volume represents a named volume in a vm.
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) SwaggerDoc ¶
func (Volume) SwaggerDoc() map[string]string
type VolumeSource ¶
type VolumeSource struct {
// PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace.
// Directly attached to the vm via qemu.
// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
// +optional
PersistentVolumeClaim *v1.PersistentVolumeClaimVolumeSource `json:"persistentVolumeClaim,omitempty"`
// CloudInitNoCloud represents a cloud-init NoCloud user-data source.
// The NoCloud data will be added as a disk to the vm. A proper cloud-init installation is required inside the guest.
// More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html
// +optional
CloudInitNoCloud *CloudInitNoCloudSource `json:"cloudInitNoCloud,omitempty"`
// RegistryDisk references a docker image, embedding a qcow or raw disk
// More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html
// +optional
RegistryDisk *RegistryDiskSource `json:"registryDisk,omitempty"`
// Ephemeral is a special volume source that "wraps" specified source and provides copy-on-write image on top of it.
// +optional
Ephemeral *EphemeralVolumeSource `json:"ephemeral,omitempty"`
}
Represents the source of a volume to mount. Only one of its members may be specified.
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.
func (VolumeSource) SwaggerDoc ¶
func (VolumeSource) SwaggerDoc() map[string]string
type Watchdog ¶
type Watchdog struct {
// Name of the watchdog
Name string `json:"name"`
// WatchdogDevice contains the watchdog type and actions
// Defaults to i6300esb
WatchdogDevice `json:",inline"`
}
Named watchdog device
func (*Watchdog) DeepCopy ¶
func (in *Watchdog) DeepCopy() *Watchdog
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Watchdog.
func (*Watchdog) DeepCopyInto ¶
func (in *Watchdog) DeepCopyInto(out *Watchdog)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Watchdog) SwaggerDoc ¶
func (Watchdog) SwaggerDoc() map[string]string
type WatchdogAction ¶
type WatchdogAction string
WatchdogAction defines the watchdog action, if a watchdog gets triggered
const (
// WatchdogActionPoweroff will poweroff the vm if the watchdog gets triggered
WatchdogActionPoweroff WatchdogAction = "poweroff"
// WatchdogActionReset will reset the vm if the watchdog gets triggered
WatchdogActionReset WatchdogAction = "reset"
// WatchdogActionShutdown will shutdown the vm if the watchdog gets triggered
WatchdogActionShutdown WatchdogAction = "shutdown"
)
type WatchdogDevice ¶
type WatchdogDevice struct {
// i6300esb watchdog device
// +optional
I6300ESB *I6300ESBWatchdog `json:"i6300esb,omitempty"`
}
Hardware watchdog device Exactly one of its members must be set.
func (*WatchdogDevice) DeepCopy ¶
func (in *WatchdogDevice) DeepCopy() *WatchdogDevice
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WatchdogDevice.
func (*WatchdogDevice) DeepCopyInto ¶
func (in *WatchdogDevice) DeepCopyInto(out *WatchdogDevice)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (WatchdogDevice) SwaggerDoc ¶
func (WatchdogDevice) SwaggerDoc() map[string]string