Documentation ¶
Index ¶
- Constants
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func PrepareVMINodeAntiAffinitySelectorRequirement(vmi *VirtualMachineInstance) 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_NetworkInterface(obj *VirtualMachineInstance)
- func SetDefaults_PITTimer(obj *PITTimer)
- func SetDefaults_RTCTimer(obj *RTCTimer)
- func SetDefaults_VirtualMachineInstance(obj *VirtualMachineInstance)
- func SetDefaults_Watchdog(obj *Watchdog)
- func SetObjectDefaults_VirtualMachine(in *VirtualMachine)
- func SetObjectDefaults_VirtualMachineInstance(in *VirtualMachineInstance)
- func SetObjectDefaults_VirtualMachineInstanceList(in *VirtualMachineInstanceList)
- func SetObjectDefaults_VirtualMachineInstancePreset(in *VirtualMachineInstancePreset)
- func SetObjectDefaults_VirtualMachineInstancePresetList(in *VirtualMachineInstancePresetList)
- func SetObjectDefaults_VirtualMachineInstanceReplicaSet(in *VirtualMachineInstanceReplicaSet)
- func SetObjectDefaults_VirtualMachineInstanceReplicaSetList(in *VirtualMachineInstanceReplicaSetList)
- func SetObjectDefaults_VirtualMachineList(in *VirtualMachineList)
- func UpdateAntiAffinityFromVMINode(pod *k8sv1.Pod, vmi *VirtualMachineInstance) *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 DomainPresetSpec
- type DomainSpec
- type EmptyDiskSource
- type EphemeralVolumeSource
- type FeatureAPIC
- type FeatureHyperv
- type FeatureSpinlocks
- type FeatureState
- type FeatureVendorID
- type Features
- type Firmware
- type FloppyTarget
- type HPETTickPolicy
- type HPETTimer
- type Hugepages
- type HypervTimer
- type I6300ESBWatchdog
- type Interface
- type InterfaceBindingMethod
- type InterfaceBridge
- type InterfaceSlirp
- type KVMTimer
- type LunTarget
- type Machine
- type Memory
- type Network
- type NetworkSource
- type PITTickPolicy
- type PITTimer
- type PodNetwork
- type Port
- type RTCTickPolicy
- type RTCTimer
- type RTCTimerTrack
- type RegistryDiskSource
- type ResourceRequirements
- type SyncEvent
- type Timer
- type TrayState
- type VMISelector
- type 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 (VirtualMachine) SwaggerDoc() map[string]string
- type VirtualMachineCondition
- type VirtualMachineConditionType
- type VirtualMachineInstance
- func NewMinimalVMI(vmiName string) *VirtualMachineInstance
- func NewMinimalVMIWithNS(namespace string, vmiName string) *VirtualMachineInstance
- func NewVMI(name string, uid types.UID) *VirtualMachineInstance
- func NewVMIReferenceFromName(name string) *VirtualMachineInstance
- func NewVMIReferenceFromNameWithNS(namespace string, name string) *VirtualMachineInstance
- func (in *VirtualMachineInstance) DeepCopy() *VirtualMachineInstance
- func (in *VirtualMachineInstance) DeepCopyInto(out *VirtualMachineInstance)
- func (in *VirtualMachineInstance) DeepCopyObject() runtime.Object
- func (v *VirtualMachineInstance) GetObjectKind() schema.ObjectKind
- func (v *VirtualMachineInstance) GetObjectMeta() metav1.Object
- func (v *VirtualMachineInstance) IsFinal() bool
- func (v *VirtualMachineInstance) IsReady() bool
- func (v *VirtualMachineInstance) IsRunning() bool
- func (v *VirtualMachineInstance) IsScheduled() bool
- func (v *VirtualMachineInstance) IsScheduling() bool
- func (v *VirtualMachineInstance) IsUnknown() bool
- func (v *VirtualMachineInstance) IsUnprocessed() bool
- func (v *VirtualMachineInstance) MarshalBinary() (data []byte, err error)
- func (VirtualMachineInstance) SwaggerDoc() map[string]string
- func (v *VirtualMachineInstance) UnmarshalBinary(data []byte) error
- func (v *VirtualMachineInstance) UnmarshalJSON(data []byte) error
- type VirtualMachineInstanceCondition
- type VirtualMachineInstanceConditionType
- type VirtualMachineInstanceList
- func (in *VirtualMachineInstanceList) DeepCopy() *VirtualMachineInstanceList
- func (in *VirtualMachineInstanceList) DeepCopyInto(out *VirtualMachineInstanceList)
- func (in *VirtualMachineInstanceList) DeepCopyObject() runtime.Object
- func (vl *VirtualMachineInstanceList) GetListMeta() meta.List
- func (vl *VirtualMachineInstanceList) GetObjectKind() schema.ObjectKind
- func (VirtualMachineInstanceList) SwaggerDoc() map[string]string
- func (vl *VirtualMachineInstanceList) UnmarshalJSON(data []byte) error
- type VirtualMachineInstanceNetworkInterface
- type VirtualMachineInstancePhase
- type VirtualMachineInstancePreset
- func (in *VirtualMachineInstancePreset) DeepCopy() *VirtualMachineInstancePreset
- func (in *VirtualMachineInstancePreset) DeepCopyInto(out *VirtualMachineInstancePreset)
- func (in *VirtualMachineInstancePreset) DeepCopyObject() runtime.Object
- func (v *VirtualMachineInstancePreset) GetObjectKind() schema.ObjectKind
- func (v *VirtualMachineInstancePreset) GetObjectMeta() metav1.Object
- func (VirtualMachineInstancePreset) SwaggerDoc() map[string]string
- type VirtualMachineInstancePresetList
- func (in *VirtualMachineInstancePresetList) DeepCopy() *VirtualMachineInstancePresetList
- func (in *VirtualMachineInstancePresetList) DeepCopyInto(out *VirtualMachineInstancePresetList)
- func (in *VirtualMachineInstancePresetList) DeepCopyObject() runtime.Object
- func (vl *VirtualMachineInstancePresetList) GetListMeta() meta.List
- func (vl *VirtualMachineInstancePresetList) GetObjectKind() schema.ObjectKind
- func (VirtualMachineInstancePresetList) SwaggerDoc() map[string]string
- func (vl *VirtualMachineInstancePresetList) UnmarshalJSON(data []byte) error
- type VirtualMachineInstancePresetSpec
- type VirtualMachineInstanceReplicaSet
- func (in *VirtualMachineInstanceReplicaSet) DeepCopy() *VirtualMachineInstanceReplicaSet
- func (in *VirtualMachineInstanceReplicaSet) DeepCopyInto(out *VirtualMachineInstanceReplicaSet)
- func (in *VirtualMachineInstanceReplicaSet) DeepCopyObject() runtime.Object
- func (v *VirtualMachineInstanceReplicaSet) GetObjectKind() schema.ObjectKind
- func (v *VirtualMachineInstanceReplicaSet) GetObjectMeta() metav1.Object
- func (VirtualMachineInstanceReplicaSet) SwaggerDoc() map[string]string
- func (v *VirtualMachineInstanceReplicaSet) UnmarshalJSON(data []byte) error
- type VirtualMachineInstanceReplicaSetCondition
- func (in *VirtualMachineInstanceReplicaSetCondition) DeepCopy() *VirtualMachineInstanceReplicaSetCondition
- func (in *VirtualMachineInstanceReplicaSetCondition) DeepCopyInto(out *VirtualMachineInstanceReplicaSetCondition)
- func (VirtualMachineInstanceReplicaSetCondition) SwaggerDoc() map[string]string
- type VirtualMachineInstanceReplicaSetConditionType
- type VirtualMachineInstanceReplicaSetList
- func (in *VirtualMachineInstanceReplicaSetList) DeepCopy() *VirtualMachineInstanceReplicaSetList
- func (in *VirtualMachineInstanceReplicaSetList) DeepCopyInto(out *VirtualMachineInstanceReplicaSetList)
- func (in *VirtualMachineInstanceReplicaSetList) DeepCopyObject() runtime.Object
- func (vl *VirtualMachineInstanceReplicaSetList) GetListMeta() meta.List
- func (vl *VirtualMachineInstanceReplicaSetList) GetObjectKind() schema.ObjectKind
- func (VirtualMachineInstanceReplicaSetList) SwaggerDoc() map[string]string
- func (vl *VirtualMachineInstanceReplicaSetList) UnmarshalJSON(data []byte) error
- type VirtualMachineInstanceReplicaSetSpec
- type VirtualMachineInstanceReplicaSetStatus
- type VirtualMachineInstanceSpec
- type VirtualMachineInstanceStatus
- type VirtualMachineInstanceTemplateSpec
- type VirtualMachineList
- 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" CreatedByAnnotation string = "kubevirt.io/created-by" OwnedByAnnotation string = "kubevirt.io/owned-by" NodeNameLabel string = "kubevirt.io/nodeName" NodeSchedulable string = "kubevirt.io/schedulable" VirtHandlerHeartbeat string = "kubevirt.io/heartbeat" VirtualMachineInstanceFinalizer string = "foregroundDeleteVirtualMachine" )
const DefaultGracePeriodSeconds int64 = 30
const GroupName = "kubevirt.io"
GroupName is the group name use in this package
const SubresourceGroupName = "subresources.kubevirt.io"
Variables ¶
var GroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha2"}
GroupVersion is group version used to register these objects
var SubresourceGroupVersion = schema.GroupVersion{Group: SubresourceGroupName, Version: "v1alpha2"}
GroupVersion is group version used to register these objects
var VirtualMachineGroupVersionKind = schema.GroupVersionKind{Group: GroupName, Version: GroupVersion.Version, Kind: "VirtualMachine"}
var VirtualMachineInstanceGroupVersionKind = schema.GroupVersionKind{Group: GroupName, Version: GroupVersion.Version, Kind: "VirtualMachineInstance"}
GroupVersionKind
var VirtualMachineInstancePresetGroupVersionKind = schema.GroupVersionKind{Group: GroupName, Version: GroupVersion.Version, Kind: "VirtualMachineInstancePreset"}
var VirtualMachineInstanceReplicaSetGroupVersionKind = schema.GroupVersionKind{Group: GroupName, Version: GroupVersion.Version, Kind: "VirtualMachineInstanceReplicaSet"}
Functions ¶
func GetOpenAPIDefinitions ¶ added in v0.4.1
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
func PrepareVMINodeAntiAffinitySelectorRequirement ¶ added in v0.6.1
func PrepareVMINodeAntiAffinitySelectorRequirement(vmi *VirtualMachineInstance) k8sv1.NodeSelectorRequirement
Given a VirtualMachineInstance, create a NodeSelectorTerm with anti-affinity for that VirtualMachineInstance's node. This is useful for the case when a migration away from a node must occur.
func RegisterDefaults ¶
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_NetworkInterface ¶ added in v0.6.1
func SetDefaults_NetworkInterface(obj *VirtualMachineInstance)
func SetDefaults_PITTimer ¶
func SetDefaults_PITTimer(obj *PITTimer)
func SetDefaults_RTCTimer ¶
func SetDefaults_RTCTimer(obj *RTCTimer)
func SetDefaults_VirtualMachineInstance ¶ added in v0.6.1
func SetDefaults_VirtualMachineInstance(obj *VirtualMachineInstance)
func SetDefaults_Watchdog ¶
func SetDefaults_Watchdog(obj *Watchdog)
func SetObjectDefaults_VirtualMachine ¶
func SetObjectDefaults_VirtualMachine(in *VirtualMachine)
func SetObjectDefaults_VirtualMachineInstance ¶ added in v0.6.1
func SetObjectDefaults_VirtualMachineInstance(in *VirtualMachineInstance)
func SetObjectDefaults_VirtualMachineInstanceList ¶ added in v0.6.1
func SetObjectDefaults_VirtualMachineInstanceList(in *VirtualMachineInstanceList)
func SetObjectDefaults_VirtualMachineInstancePreset ¶ added in v0.6.1
func SetObjectDefaults_VirtualMachineInstancePreset(in *VirtualMachineInstancePreset)
func SetObjectDefaults_VirtualMachineInstancePresetList ¶ added in v0.6.1
func SetObjectDefaults_VirtualMachineInstancePresetList(in *VirtualMachineInstancePresetList)
func SetObjectDefaults_VirtualMachineInstanceReplicaSet ¶ added in v0.6.1
func SetObjectDefaults_VirtualMachineInstanceReplicaSet(in *VirtualMachineInstanceReplicaSet)
func SetObjectDefaults_VirtualMachineInstanceReplicaSetList ¶ added in v0.6.1
func SetObjectDefaults_VirtualMachineInstanceReplicaSetList(in *VirtualMachineInstanceReplicaSetList)
func SetObjectDefaults_VirtualMachineList ¶
func SetObjectDefaults_VirtualMachineList(in *VirtualMachineList)
func UpdateAntiAffinityFromVMINode ¶ added in v0.6.1
func UpdateAntiAffinityFromVMINode(pod *k8sv1.Pod, vmi *VirtualMachineInstance) *k8sv1.Affinity
Given a VirtualMachineInstance, update all NodeSelectorTerms with anti-affinity for that VirtualMachineInstance'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"` // Pod affinity support PodAffinity *k8sv1.PodAffinity `json:"podAffinity,omitempty"` // Pod anti-affinity support PodAntiAffinity *k8sv1.PodAntiAffinity `json:"podAntiAffinity,omitempty"` }
Affinity groups all the affinity rules related to a VirtualMachineInstance --- +k8s:openapi-gen=true
func (*Affinity) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Affinity.
func (*Affinity) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Affinity) SwaggerDoc ¶
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"` }
--- +k8s:openapi-gen=true
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 vmi. // Must be a value greater or equal 1. Cores uint32 `json:"cores,omitempty"` // Model specifies the CPU model inside the VMI. // List of available models https://github.com/libvirt/libvirt/blob/master/src/cpu/cpu_map.xml. // +optional Model string `json:"model,omitempty"` }
CPU allows specifying the CPU topology. --- +k8s:openapi-gen=true
func (*CPU) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CPU.
func (*CPU) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (CPU) SwaggerDoc ¶
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 vmi. Timer *Timer `json:"timer,inline"` }
Represents the clock and timers of a vmi. --- +k8s:openapi-gen=true
func (*Clock) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Clock.
func (*Clock) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Clock) SwaggerDoc ¶
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. --- +k8s:openapi-gen=true
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'). --- +k8s:openapi-gen=true
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. --- +k8s:openapi-gen=true
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 --- +k8s:openapi-gen=true
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 vmi. Disks []Disk `json:"disks,omitempty"` // Watchdog describes a watchdog device which can be added to the vmi. Watchdog *Watchdog `json:"watchdog,omitempty"` // Interfaces describe network interfaces which are added to the vm. Interfaces []Interface `json:"interfaces,omitempty"` }
--- +k8s:openapi-gen=true
func (*Devices) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Devices.
func (*Devices) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Devices) SwaggerDoc ¶
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"` // BootOrder is an integer value > 0, used to determine ordering of boot devices. // Lower values take precedence. // Disks without a boot order are not tried if a disk with a boot order exists. // +optional BootOrder *uint `json:"bootOrder,omitempty"` // Serial provides the ability to specify a serial number for the disk device. // +optional Serial string `json:"serial,omitempty"` }
--- +k8s:openapi-gen=true
func (*Disk) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Disk.
func (*Disk) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Disk) SwaggerDoc ¶
type DiskDevice ¶
type DiskDevice struct { // Attach a volume as a disk to the vmi. Disk *DiskTarget `json:"disk,omitempty"` // Attach a volume as a LUN to the vmi. LUN *LunTarget `json:"lun,omitempty"` // Attach a volume as a floppy to the vmi. Floppy *FloppyTarget `json:"floppy,omitempty"` // Attach a volume as a cdrom to the vmi. CDRom *CDRomTarget `json:"cdrom,omitempty"` }
Represents the target of a volume to mount. Only one of its members may be specified. --- +k8s:openapi-gen=true
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"` }
--- +k8s:openapi-gen=true
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 DomainPresetSpec ¶ added in v0.7.0
type DomainPresetSpec struct { // Resources describes the Compute Resources required by this vmi. Resources ResourceRequirements `json:"resources,omitempty"` // CPU allow specified the detailed CPU topology inside the vmi. // +optional CPU *CPU `json:"cpu,omitempty"` // Memory allow specifying the VMI memory features. // +optional Memory *Memory `json:"memory,omitempty"` // Machine type. // +optional Machine Machine `json:"machine,omitempty"` // Firmware. // +optional Firmware *Firmware `json:"firmware,omitempty"` // Clock sets the clock and timers of the vmi. // +optional Clock *Clock `json:"clock,omitempty"` // Features like acpi, apic, hyperv. // +optional Features *Features `json:"features,omitempty"` // Devices allows adding disks, network interfaces, ... // +optional Devices Devices `json:"devices,omitempty"` }
--- +k8s:openapi-gen=true
func (*DomainPresetSpec) DeepCopy ¶ added in v0.7.0
func (in *DomainPresetSpec) DeepCopy() *DomainPresetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DomainPresetSpec.
func (*DomainPresetSpec) DeepCopyInto ¶ added in v0.7.0
func (in *DomainPresetSpec) DeepCopyInto(out *DomainPresetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (DomainPresetSpec) SwaggerDoc ¶ added in v0.7.0
func (DomainPresetSpec) SwaggerDoc() map[string]string
type DomainSpec ¶
type DomainSpec struct { // Resources describes the Compute Resources required by this vmi. Resources ResourceRequirements `json:"resources,omitempty"` // CPU allow specified the detailed CPU topology inside the vmi. // +optional CPU *CPU `json:"cpu,omitempty"` // Memory allow specifying the VMI memory features. // +optional Memory *Memory `json:"memory,omitempty"` // Machine type. // +optional Machine Machine `json:"machine,omitempty"` // Firmware. // +optional Firmware *Firmware `json:"firmware,omitempty"` // Clock sets the clock and timers of the vmi. // +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"` }
--- +k8s:openapi-gen=true
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 EmptyDiskSource ¶ added in v0.4.0
type EmptyDiskSource struct { // Capacity of the sparse disk. Capacity resource.Quantity `json:"capacity"` }
EmptyDisk represents a temporary disk which shares the vmis lifecycle. --- +k8s:openapi-gen=true
func (*EmptyDiskSource) DeepCopy ¶ added in v0.4.0
func (in *EmptyDiskSource) DeepCopy() *EmptyDiskSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmptyDiskSource.
func (*EmptyDiskSource) DeepCopyInto ¶ added in v0.4.0
func (in *EmptyDiskSource) DeepCopyInto(out *EmptyDiskSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (EmptyDiskSource) SwaggerDoc ¶ added in v0.4.0
func (EmptyDiskSource) SwaggerDoc() map[string]string
type EphemeralVolumeSource ¶
type EphemeralVolumeSource struct { // PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. // Directly attached to the vmi via qemu. // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims // +optional PersistentVolumeClaim *v1.PersistentVolumeClaimVolumeSource `json:"persistentVolumeClaim,omitempty"` }
--- +k8s:openapi-gen=true
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"` }
--- +k8s:openapi-gen=true
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 vmi. // 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. --- +k8s:openapi-gen=true
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"` }
--- +k8s:openapi-gen=true
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. --- +k8s:openapi-gen=true
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 vmi. // String up to twelve characters. VendorID string `json:"vendorid,omitempty"` }
--- +k8s:openapi-gen=true
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"` }
--- +k8s:openapi-gen=true
func (*Features) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Features.
func (*Features) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Features) SwaggerDoc ¶
type Firmware ¶
type Firmware struct { // UUID reported by the vmi bios. // Defaults to a random generated uid. UUID types.UID `json:"uuid,omitempty"` }
--- +k8s:openapi-gen=true
func (*Firmware) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Firmware.
func (*Firmware) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Firmware) SwaggerDoc ¶
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"` }
--- +k8s:openapi-gen=true
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. --- +k8s:openapi-gen=true
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"` }
--- +k8s:openapi-gen=true
func (*HPETTimer) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HPETTimer.
func (*HPETTimer) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (HPETTimer) SwaggerDoc ¶
type Hugepages ¶ added in v0.6.1
type Hugepages struct { // PageSize specifies the hugepage size, for x86_64 architecture valid values are 1Gi and 2Mi. PageSize string `json:"pageSize,omitempty"` }
Hugepages allow to use hugepages for the VirtualMachineInstance instead of regular memory. --- +k8s:openapi-gen=true
func (*Hugepages) DeepCopy ¶ added in v0.6.1
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Hugepages.
func (*Hugepages) DeepCopyInto ¶ added in v0.6.1
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Hugepages) SwaggerDoc ¶ added in v0.6.1
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"` }
--- +k8s:openapi-gen=true
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. --- +k8s:openapi-gen=true
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 Interface ¶ added in v0.6.0
type Interface struct { // Logical name of the interface as well as a reference to the associated networks. // Must match the Name of a Network. Name string `json:"name"` // Interface model. // One of: e1000, e1000e, ne2k_pci, pcnet, rtl8139, virtio. // Defaults to virtio. // TODO:(ihar) switch to enums once opengen-api supports them. See: https://github.com/kubernetes/kube-openapi/issues/51 Model string `json:"model,omitempty"` // BindingMethod specifies the method which will be used to connect the interface to the guest. // Defaults to Bridge. InterfaceBindingMethod `json:",inline"` // List of ports to be forwarded to the virtual machine. Ports []Port `json:"ports,omitempty"` // Interface MAC address. For example: de:ad:00:00:be:af or DE-AD-00-00-BE-AF. MacAddress string `json:"macAddress,omitempty"` }
--- +k8s:openapi-gen=true
func DefaultNetworkInterface ¶ added in v0.6.0
func DefaultNetworkInterface() *Interface
func DefaultSlirpNetworkInterface ¶ added in v0.7.0
func DefaultSlirpNetworkInterface() *Interface
func (*Interface) DeepCopy ¶ added in v0.6.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Interface.
func (*Interface) DeepCopyInto ¶ added in v0.6.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Interface) SwaggerDoc ¶ added in v0.6.0
type InterfaceBindingMethod ¶ added in v0.6.0
type InterfaceBindingMethod struct { Bridge *InterfaceBridge `json:"bridge,omitempty"` Slirp *InterfaceSlirp `json:"slirp,omitempty"` }
Represents the method which will be used to connect the interface to the guest. Only one of its members may be specified. --- +k8s:openapi-gen=true
func (*InterfaceBindingMethod) DeepCopy ¶ added in v0.6.0
func (in *InterfaceBindingMethod) DeepCopy() *InterfaceBindingMethod
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InterfaceBindingMethod.
func (*InterfaceBindingMethod) DeepCopyInto ¶ added in v0.6.0
func (in *InterfaceBindingMethod) DeepCopyInto(out *InterfaceBindingMethod)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (InterfaceBindingMethod) SwaggerDoc ¶ added in v0.6.0
func (InterfaceBindingMethod) SwaggerDoc() map[string]string
type InterfaceBridge ¶ added in v0.6.0
type InterfaceBridge struct{}
--- +k8s:openapi-gen=true
func (*InterfaceBridge) DeepCopy ¶ added in v0.6.0
func (in *InterfaceBridge) DeepCopy() *InterfaceBridge
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InterfaceBridge.
func (*InterfaceBridge) DeepCopyInto ¶ added in v0.6.0
func (in *InterfaceBridge) DeepCopyInto(out *InterfaceBridge)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (InterfaceBridge) SwaggerDoc ¶ added in v0.6.0
func (InterfaceBridge) SwaggerDoc() map[string]string
type InterfaceSlirp ¶ added in v0.7.0
type InterfaceSlirp struct{}
--- +k8s:openapi-gen=true
func (*InterfaceSlirp) DeepCopy ¶ added in v0.7.0
func (in *InterfaceSlirp) DeepCopy() *InterfaceSlirp
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InterfaceSlirp.
func (*InterfaceSlirp) DeepCopyInto ¶ added in v0.7.0
func (in *InterfaceSlirp) DeepCopyInto(out *InterfaceSlirp)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (InterfaceSlirp) SwaggerDoc ¶ added in v0.7.0
func (InterfaceSlirp) 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"` }
--- +k8s:openapi-gen=true
func (*KVMTimer) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KVMTimer.
func (*KVMTimer) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (KVMTimer) SwaggerDoc ¶
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"` }
--- +k8s:openapi-gen=true
func (*LunTarget) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LunTarget.
func (*LunTarget) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (LunTarget) SwaggerDoc ¶
type Machine ¶
type Machine struct { // QEMU machine type is the actual chipset of the VirtualMachineInstance. Type string `json:"type"` }
--- +k8s:openapi-gen=true
func (*Machine) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Machine.
func (*Machine) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Machine) SwaggerDoc ¶
type Memory ¶ added in v0.6.1
type Memory struct { // Hugepages allow to use hugepages for the VirtualMachineInstance instead of regular memory. // +optional Hugepages *Hugepages `json:"hugepages,omitempty"` }
Memory allows specifying the VirtualMachineInstance memory features. --- +k8s:openapi-gen=true
func (*Memory) DeepCopy ¶ added in v0.6.1
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Memory.
func (*Memory) DeepCopyInto ¶ added in v0.6.1
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Memory) SwaggerDoc ¶ added in v0.6.1
type Network ¶ added in v0.6.0
type Network struct { // Network 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"` // NetworkSource represents the network type and the source interface that should be connected to the virtual machine. // Defaults to Pod, if no type is specified. NetworkSource `json:",inline"` }
Network represents a network type and a resource that should be connected to the vm. --- +k8s:openapi-gen=true
func DefaultPodNetwork ¶ added in v0.6.0
func DefaultPodNetwork() *Network
func (*Network) DeepCopy ¶ added in v0.6.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Network.
func (*Network) DeepCopyInto ¶ added in v0.6.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Network) SwaggerDoc ¶ added in v0.6.0
type NetworkSource ¶ added in v0.6.0
type NetworkSource struct {
Pod *PodNetwork `json:"pod,omitempty"`
}
Represents the source resource that will be connected to the vm. Only one of its members may be specified. --- +k8s:openapi-gen=true
func (*NetworkSource) DeepCopy ¶ added in v0.6.0
func (in *NetworkSource) DeepCopy() *NetworkSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkSource.
func (*NetworkSource) DeepCopyInto ¶ added in v0.6.0
func (in *NetworkSource) DeepCopyInto(out *NetworkSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (NetworkSource) SwaggerDoc ¶ added in v0.6.0
func (NetworkSource) 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. --- +k8s:openapi-gen=true
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"` }
--- +k8s:openapi-gen=true
func (*PITTimer) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PITTimer.
func (*PITTimer) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PITTimer) SwaggerDoc ¶
type PodNetwork ¶ added in v0.6.0
type PodNetwork struct { // CIDR for vm network. // Default 10.0.2.0/24 if not specified. VMNetworkCIDR string `json:"vmNetworkCIDR,omitempty"` }
Represents the stock pod network interface. --- +k8s:openapi-gen=true
func (*PodNetwork) DeepCopy ¶ added in v0.6.0
func (in *PodNetwork) DeepCopy() *PodNetwork
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodNetwork.
func (*PodNetwork) DeepCopyInto ¶ added in v0.6.0
func (in *PodNetwork) DeepCopyInto(out *PodNetwork)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PodNetwork) SwaggerDoc ¶ added in v0.6.0
func (PodNetwork) SwaggerDoc() map[string]string
type Port ¶ added in v0.7.0
type Port struct { // If specified, this must be an IANA_SVC_NAME and unique within the pod. Each // named port in a pod must have a unique name. Name for the port that can be // referred to by services. // +optional Name string `json:"name,omitempty"` // Protocol for port. Must be UDP or TCP. // Defaults to "TCP". // +optional Protocol string `json:"protocol,omitempty"` // Number of port to expose for the virtual machine. // This must be a valid port number, 0 < x < 65536. Port int32 `json:"port"` }
Port repesents a port to expose from the virtual machine. Default protocol TCP. The port field is mandatory --- +k8s:openapi-gen=true
func (*Port) DeepCopy ¶ added in v0.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Port.
func (*Port) DeepCopyInto ¶ added in v0.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Port) SwaggerDoc ¶ added in v0.7.0
type RTCTickPolicy ¶
type RTCTickPolicy string
RTCTickPolicy determines what happens when QEMU misses a deadline for injecting a tick to the guest. --- +k8s:openapi-gen=true
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"` }
--- +k8s:openapi-gen=true
func (*RTCTimer) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RTCTimer.
func (*RTCTimer) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (RTCTimer) SwaggerDoc ¶
type RTCTimerTrack ¶
type RTCTimerTrack string
RTCTimerTrack specifies from which source to track the time. --- +k8s:openapi-gen=true
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"` // ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist. ImagePullSecret string `json:"imagePullSecret,omitempty"` }
Represents a docker image with an embedded disk. --- +k8s:openapi-gen=true
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 vmi 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"` }
--- +k8s:openapi-gen=true
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 SyncEvent ¶
type SyncEvent string
--- +k8s:openapi-gen=true
const ( Created SyncEvent = "Created" Deleted SyncEvent = "Deleted" PresetFailed SyncEvent = "PresetFailed" Override SyncEvent = "Override" 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 vmi. --- +k8s:openapi-gen=true
func (*Timer) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Timer.
func (*Timer) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Timer) SwaggerDoc ¶
type TrayState ¶
type TrayState string
TrayState indicates if a tray of a cdrom or floppy is open or closed. --- +k8s:openapi-gen=true
type VMISelector ¶ added in v0.6.1
type VMISelector struct { // Name of the VirtualMachineInstance to migrate Name string `json:"name" valid:"required"` }
func (*VMISelector) DeepCopy ¶ added in v0.6.1
func (in *VMISelector) DeepCopy() *VMISelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VMISelector.
func (*VMISelector) DeepCopyInto ¶ added in v0.6.1
func (in *VMISelector) DeepCopyInto(out *VMISelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VMISelector) SwaggerDoc ¶ added in v0.6.1
func (VMISelector) SwaggerDoc() map[string]string
type VirtualMachine ¶
type VirtualMachine struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // Spec contains the specification of VirtualMachineInstance created Spec VirtualMachineSpec `json:"spec,omitempty"` // Status holds the current state of the controller and brief information // about its associated VirtualMachineInstance Status VirtualMachineStatus `json:"status,omitempty"` }
VirtualMachine handles the VirtualMachines that are not running or are in a stopped state The VirtualMachine contains the template to create the VirtualMachineInstance. It also mirrors the running state of the created VirtualMachineInstance in its status. --- +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true
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
GetObjectKind is required to satisfy Object interface
func (*VirtualMachine) GetObjectMeta ¶
func (v *VirtualMachine) GetObjectMeta() metav1.Object
GetObjectMeta is required to satisfy ObjectMetaAccessor interface
func (VirtualMachine) SwaggerDoc ¶
func (VirtualMachine) SwaggerDoc() map[string]string
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"` }
VirtualMachineCondition represents the state of VirtualMachine --- +k8s:openapi-gen=true
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
--- +k8s:openapi-gen=true
const ( // VirtualMachineFailure is added in a offline virtual machine when its vmi // 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. VirtualMachineFailure VirtualMachineConditionType = "Failure" )
type VirtualMachineInstance ¶ added in v0.6.1
type VirtualMachineInstance struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // VirtualMachineInstance Spec contains the VirtualMachineInstance specification. Spec VirtualMachineInstanceSpec `json:"spec,omitempty" valid:"required"` // Status is the high level overview of how the VirtualMachineInstance is doing. It contains information available to controllers and users. Status VirtualMachineInstanceStatus `json:"status,omitempty"` }
VirtualMachineInstance is *the* VirtualMachineInstance Definition. It represents a virtual machine in the runtime environment of kubernetes. --- +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true
func NewMinimalVMI ¶ added in v0.6.1
func NewMinimalVMI(vmiName string) *VirtualMachineInstance
func NewMinimalVMIWithNS ¶ added in v0.6.1
func NewMinimalVMIWithNS(namespace string, vmiName string) *VirtualMachineInstance
func NewVMIReferenceFromName ¶ added in v0.6.1
func NewVMIReferenceFromName(name string) *VirtualMachineInstance
TODO Namespace could be different, also store it somewhere in the domain, so that we can report deletes on handler startup properly
func NewVMIReferenceFromNameWithNS ¶ added in v0.6.1
func NewVMIReferenceFromNameWithNS(namespace string, name string) *VirtualMachineInstance
func (*VirtualMachineInstance) DeepCopy ¶ added in v0.6.1
func (in *VirtualMachineInstance) DeepCopy() *VirtualMachineInstance
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineInstance.
func (*VirtualMachineInstance) DeepCopyInto ¶ added in v0.6.1
func (in *VirtualMachineInstance) DeepCopyInto(out *VirtualMachineInstance)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualMachineInstance) DeepCopyObject ¶ added in v0.6.1
func (in *VirtualMachineInstance) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*VirtualMachineInstance) GetObjectKind ¶ added in v0.6.1
func (v *VirtualMachineInstance) GetObjectKind() schema.ObjectKind
Required to satisfy Object interface
func (*VirtualMachineInstance) GetObjectMeta ¶ added in v0.6.1
func (v *VirtualMachineInstance) GetObjectMeta() metav1.Object
Required to satisfy ObjectMetaAccessor interface
func (*VirtualMachineInstance) IsFinal ¶ added in v0.6.1
func (v *VirtualMachineInstance) IsFinal() bool
func (*VirtualMachineInstance) IsReady ¶ added in v0.6.1
func (v *VirtualMachineInstance) IsReady() bool
func (*VirtualMachineInstance) IsRunning ¶ added in v0.6.1
func (v *VirtualMachineInstance) IsRunning() bool
func (*VirtualMachineInstance) IsScheduled ¶ added in v0.6.1
func (v *VirtualMachineInstance) IsScheduled() bool
func (*VirtualMachineInstance) IsScheduling ¶ added in v0.6.1
func (v *VirtualMachineInstance) IsScheduling() bool
func (*VirtualMachineInstance) IsUnknown ¶ added in v0.6.1
func (v *VirtualMachineInstance) IsUnknown() bool
func (*VirtualMachineInstance) IsUnprocessed ¶ added in v0.6.1
func (v *VirtualMachineInstance) IsUnprocessed() bool
func (*VirtualMachineInstance) MarshalBinary ¶ added in v0.6.1
func (v *VirtualMachineInstance) MarshalBinary() (data []byte, err error)
func (VirtualMachineInstance) SwaggerDoc ¶ added in v0.6.1
func (VirtualMachineInstance) SwaggerDoc() map[string]string
func (*VirtualMachineInstance) UnmarshalBinary ¶ added in v0.6.1
func (v *VirtualMachineInstance) UnmarshalBinary(data []byte) error
func (*VirtualMachineInstance) UnmarshalJSON ¶ added in v0.6.1
func (v *VirtualMachineInstance) UnmarshalJSON(data []byte) error
type VirtualMachineInstanceCondition ¶ added in v0.6.1
type VirtualMachineInstanceCondition struct { Type VirtualMachineInstanceConditionType `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"` }
--- +k8s:openapi-gen=true
func (*VirtualMachineInstanceCondition) DeepCopy ¶ added in v0.6.1
func (in *VirtualMachineInstanceCondition) DeepCopy() *VirtualMachineInstanceCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineInstanceCondition.
func (*VirtualMachineInstanceCondition) DeepCopyInto ¶ added in v0.6.1
func (in *VirtualMachineInstanceCondition) DeepCopyInto(out *VirtualMachineInstanceCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VirtualMachineInstanceCondition) SwaggerDoc ¶ added in v0.6.1
func (VirtualMachineInstanceCondition) SwaggerDoc() map[string]string
type VirtualMachineInstanceConditionType ¶ added in v0.6.1
type VirtualMachineInstanceConditionType string
--- +k8s:openapi-gen=true
const ( // VMIReady means the pod is able to service requests and should be added to the // load balancing pools of all matching services. VirtualMachineInstanceReady VirtualMachineInstanceConditionType = "Ready" // If there happens any error while trying to synchronize the VirtualMachineInstance with the Domain, // this is reported as false. VirtualMachineInstanceSynchronized VirtualMachineInstanceConditionType = "Synchronized" )
These are valid conditions of VMIs.
type VirtualMachineInstanceList ¶ added in v0.6.1
type VirtualMachineInstanceList struct { metav1.TypeMeta `json:",inline"` ListMeta metav1.ListMeta `json:"metadata,omitempty"` Items []VirtualMachineInstance `json:"items"` }
VirtualMachineInstanceList is a list of VirtualMachines --- +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true
func (*VirtualMachineInstanceList) DeepCopy ¶ added in v0.6.1
func (in *VirtualMachineInstanceList) DeepCopy() *VirtualMachineInstanceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineInstanceList.
func (*VirtualMachineInstanceList) DeepCopyInto ¶ added in v0.6.1
func (in *VirtualMachineInstanceList) DeepCopyInto(out *VirtualMachineInstanceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualMachineInstanceList) DeepCopyObject ¶ added in v0.6.1
func (in *VirtualMachineInstanceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*VirtualMachineInstanceList) GetListMeta ¶ added in v0.6.1
func (vl *VirtualMachineInstanceList) GetListMeta() meta.List
Required to satisfy ListMetaAccessor interface
func (*VirtualMachineInstanceList) GetObjectKind ¶ added in v0.6.1
func (vl *VirtualMachineInstanceList) GetObjectKind() schema.ObjectKind
Required to satisfy Object interface
func (VirtualMachineInstanceList) SwaggerDoc ¶ added in v0.6.1
func (VirtualMachineInstanceList) SwaggerDoc() map[string]string
func (*VirtualMachineInstanceList) UnmarshalJSON ¶ added in v0.6.1
func (vl *VirtualMachineInstanceList) UnmarshalJSON(data []byte) error
type VirtualMachineInstanceNetworkInterface ¶ added in v0.6.1
type VirtualMachineInstanceNetworkInterface 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"` }
--- +k8s:openapi-gen=true
func (*VirtualMachineInstanceNetworkInterface) DeepCopy ¶ added in v0.6.1
func (in *VirtualMachineInstanceNetworkInterface) DeepCopy() *VirtualMachineInstanceNetworkInterface
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineInstanceNetworkInterface.
func (*VirtualMachineInstanceNetworkInterface) DeepCopyInto ¶ added in v0.6.1
func (in *VirtualMachineInstanceNetworkInterface) DeepCopyInto(out *VirtualMachineInstanceNetworkInterface)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VirtualMachineInstanceNetworkInterface) SwaggerDoc ¶ added in v0.6.1
func (VirtualMachineInstanceNetworkInterface) SwaggerDoc() map[string]string
type VirtualMachineInstancePhase ¶ added in v0.6.1
type VirtualMachineInstancePhase string
VirtualMachineInstancePhase is a label for the condition of a VirtualMachineInstance at the current time. --- +k8s:openapi-gen=true
const ( //When a VirtualMachineInstance Object is first initialized and no phase, or Pending is present. VmPhaseUnset VirtualMachineInstancePhase = "" // Pending means the VirtualMachineInstance has been accepted by the system. Pending VirtualMachineInstancePhase = "Pending" // A target Pod exists but is not yet scheduled and in running state. Scheduling VirtualMachineInstancePhase = "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 VirtualMachineInstancePhase = "Scheduled" // Running means the pod has been bound to a node and the VirtualMachineInstance is started. Running VirtualMachineInstancePhase = "Running" // Succeeded means that the VirtualMachineInstance stopped voluntarily, e.g. reacted to SIGTERM or shutdown was invoked from // inside the VirtualMachineInstance. Succeeded VirtualMachineInstancePhase = "Succeeded" // Failed means that the vmi crashed, disappeared unexpectedly or got deleted from the cluster before it was ever started. Failed VirtualMachineInstancePhase = "Failed" // Unknown means that for some reason the state of the VirtualMachineInstance could not be obtained, typically due // to an error in communicating with the host of the VirtualMachineInstance. Unknown VirtualMachineInstancePhase = "Unknown" )
These are the valid statuses of pods.
type VirtualMachineInstancePreset ¶ added in v0.6.1
type VirtualMachineInstancePreset struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // VirtualMachineInstance Spec contains the VirtualMachineInstance specification. Spec VirtualMachineInstancePresetSpec `json:"spec,omitempty" valid:"required"` }
--- +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true
func NewVirtualMachinePreset ¶
func NewVirtualMachinePreset(name string, selector metav1.LabelSelector) *VirtualMachineInstancePreset
func (*VirtualMachineInstancePreset) DeepCopy ¶ added in v0.6.1
func (in *VirtualMachineInstancePreset) DeepCopy() *VirtualMachineInstancePreset
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineInstancePreset.
func (*VirtualMachineInstancePreset) DeepCopyInto ¶ added in v0.6.1
func (in *VirtualMachineInstancePreset) DeepCopyInto(out *VirtualMachineInstancePreset)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualMachineInstancePreset) DeepCopyObject ¶ added in v0.6.1
func (in *VirtualMachineInstancePreset) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*VirtualMachineInstancePreset) GetObjectKind ¶ added in v0.6.1
func (v *VirtualMachineInstancePreset) GetObjectKind() schema.ObjectKind
Required to satisfy Object interface
func (*VirtualMachineInstancePreset) GetObjectMeta ¶ added in v0.6.1
func (v *VirtualMachineInstancePreset) GetObjectMeta() metav1.Object
Required to satisfy ObjectMetaAccessor interface
func (VirtualMachineInstancePreset) SwaggerDoc ¶ added in v0.6.1
func (VirtualMachineInstancePreset) SwaggerDoc() map[string]string
type VirtualMachineInstancePresetList ¶ added in v0.6.1
type VirtualMachineInstancePresetList struct { metav1.TypeMeta `json:",inline"` ListMeta metav1.ListMeta `json:"metadata,omitempty"` Items []VirtualMachineInstancePreset `json:"items"` }
VirtualMachineInstancePresetList is a list of VirtualMachinePresets --- +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true
func (*VirtualMachineInstancePresetList) DeepCopy ¶ added in v0.6.1
func (in *VirtualMachineInstancePresetList) DeepCopy() *VirtualMachineInstancePresetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineInstancePresetList.
func (*VirtualMachineInstancePresetList) DeepCopyInto ¶ added in v0.6.1
func (in *VirtualMachineInstancePresetList) DeepCopyInto(out *VirtualMachineInstancePresetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualMachineInstancePresetList) DeepCopyObject ¶ added in v0.6.1
func (in *VirtualMachineInstancePresetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*VirtualMachineInstancePresetList) GetListMeta ¶ added in v0.6.1
func (vl *VirtualMachineInstancePresetList) GetListMeta() meta.List
Required to satisfy ListMetaAccessor interface
func (*VirtualMachineInstancePresetList) GetObjectKind ¶ added in v0.6.1
func (vl *VirtualMachineInstancePresetList) GetObjectKind() schema.ObjectKind
Required to satisfy Object interface
func (VirtualMachineInstancePresetList) SwaggerDoc ¶ added in v0.6.1
func (VirtualMachineInstancePresetList) SwaggerDoc() map[string]string
func (*VirtualMachineInstancePresetList) UnmarshalJSON ¶ added in v0.6.1
func (vl *VirtualMachineInstancePresetList) UnmarshalJSON(data []byte) error
type VirtualMachineInstancePresetSpec ¶ added in v0.6.1
type VirtualMachineInstancePresetSpec struct { // Selector is a label query over a set of VMIs. // Required. Selector metav1.LabelSelector `json:"selector"` // Domain is the same object type as contained in VirtualMachineInstanceSpec Domain *DomainPresetSpec `json:"domain,omitempty"` }
--- +k8s:openapi-gen=true
func (*VirtualMachineInstancePresetSpec) DeepCopy ¶ added in v0.6.1
func (in *VirtualMachineInstancePresetSpec) DeepCopy() *VirtualMachineInstancePresetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineInstancePresetSpec.
func (*VirtualMachineInstancePresetSpec) DeepCopyInto ¶ added in v0.6.1
func (in *VirtualMachineInstancePresetSpec) DeepCopyInto(out *VirtualMachineInstancePresetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VirtualMachineInstancePresetSpec) SwaggerDoc ¶ added in v0.6.1
func (VirtualMachineInstancePresetSpec) SwaggerDoc() map[string]string
type VirtualMachineInstanceReplicaSet ¶ added in v0.6.1
type VirtualMachineInstanceReplicaSet struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // VirtualMachineInstance Spec contains the VirtualMachineInstance specification. Spec VirtualMachineInstanceReplicaSetSpec `json:"spec,omitempty" valid:"required"` // Status is the high level overview of how the VirtualMachineInstance is doing. It contains information available to controllers and users. Status VirtualMachineInstanceReplicaSetStatus `json:"status,omitempty"` }
VirtualMachineInstance is *the* VirtualMachineInstance Definition. It represents a virtual machine in the runtime environment of kubernetes. --- +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true
func (*VirtualMachineInstanceReplicaSet) DeepCopy ¶ added in v0.6.1
func (in *VirtualMachineInstanceReplicaSet) DeepCopy() *VirtualMachineInstanceReplicaSet
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineInstanceReplicaSet.
func (*VirtualMachineInstanceReplicaSet) DeepCopyInto ¶ added in v0.6.1
func (in *VirtualMachineInstanceReplicaSet) DeepCopyInto(out *VirtualMachineInstanceReplicaSet)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualMachineInstanceReplicaSet) DeepCopyObject ¶ added in v0.6.1
func (in *VirtualMachineInstanceReplicaSet) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*VirtualMachineInstanceReplicaSet) GetObjectKind ¶ added in v0.6.1
func (v *VirtualMachineInstanceReplicaSet) GetObjectKind() schema.ObjectKind
Required to satisfy Object interface
func (*VirtualMachineInstanceReplicaSet) GetObjectMeta ¶ added in v0.6.1
func (v *VirtualMachineInstanceReplicaSet) GetObjectMeta() metav1.Object
Required to satisfy ObjectMetaAccessor interface
func (VirtualMachineInstanceReplicaSet) SwaggerDoc ¶ added in v0.6.1
func (VirtualMachineInstanceReplicaSet) SwaggerDoc() map[string]string
func (*VirtualMachineInstanceReplicaSet) UnmarshalJSON ¶ added in v0.6.1
func (v *VirtualMachineInstanceReplicaSet) UnmarshalJSON(data []byte) error
type VirtualMachineInstanceReplicaSetCondition ¶ added in v0.6.1
type VirtualMachineInstanceReplicaSetCondition struct { Type VirtualMachineInstanceReplicaSetConditionType `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"` }
--- +k8s:openapi-gen=true
func (*VirtualMachineInstanceReplicaSetCondition) DeepCopy ¶ added in v0.6.1
func (in *VirtualMachineInstanceReplicaSetCondition) DeepCopy() *VirtualMachineInstanceReplicaSetCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineInstanceReplicaSetCondition.
func (*VirtualMachineInstanceReplicaSetCondition) DeepCopyInto ¶ added in v0.6.1
func (in *VirtualMachineInstanceReplicaSetCondition) DeepCopyInto(out *VirtualMachineInstanceReplicaSetCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VirtualMachineInstanceReplicaSetCondition) SwaggerDoc ¶ added in v0.6.1
func (VirtualMachineInstanceReplicaSetCondition) SwaggerDoc() map[string]string
type VirtualMachineInstanceReplicaSetConditionType ¶ added in v0.6.1
type VirtualMachineInstanceReplicaSetConditionType string
--- +k8s:openapi-gen=true
const ( // VirtualMachineInstanceReplicaSetReplicaFailure is added in a replica set when one of its vmis // 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. VirtualMachineInstanceReplicaSetReplicaFailure VirtualMachineInstanceReplicaSetConditionType = "ReplicaFailure" // VirtualMachineInstanceReplicaSetReplicaPaused 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 vmis by hand and adjust the replica count by hand. VirtualMachineInstanceReplicaSetReplicaPaused VirtualMachineInstanceReplicaSetConditionType = "ReplicaPaused" )
type VirtualMachineInstanceReplicaSetList ¶ added in v0.6.1
type VirtualMachineInstanceReplicaSetList struct { metav1.TypeMeta `json:",inline"` ListMeta metav1.ListMeta `json:"metadata,omitempty"` Items []VirtualMachineInstanceReplicaSet `json:"items"` }
VMIList is a list of VMIs --- +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true
func (*VirtualMachineInstanceReplicaSetList) DeepCopy ¶ added in v0.6.1
func (in *VirtualMachineInstanceReplicaSetList) DeepCopy() *VirtualMachineInstanceReplicaSetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineInstanceReplicaSetList.
func (*VirtualMachineInstanceReplicaSetList) DeepCopyInto ¶ added in v0.6.1
func (in *VirtualMachineInstanceReplicaSetList) DeepCopyInto(out *VirtualMachineInstanceReplicaSetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualMachineInstanceReplicaSetList) DeepCopyObject ¶ added in v0.6.1
func (in *VirtualMachineInstanceReplicaSetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*VirtualMachineInstanceReplicaSetList) GetListMeta ¶ added in v0.6.1
func (vl *VirtualMachineInstanceReplicaSetList) GetListMeta() meta.List
Required to satisfy ListMetaAccessor interface
func (*VirtualMachineInstanceReplicaSetList) GetObjectKind ¶ added in v0.6.1
func (vl *VirtualMachineInstanceReplicaSetList) GetObjectKind() schema.ObjectKind
Required to satisfy Object interface
func (VirtualMachineInstanceReplicaSetList) SwaggerDoc ¶ added in v0.6.1
func (VirtualMachineInstanceReplicaSetList) SwaggerDoc() map[string]string
func (*VirtualMachineInstanceReplicaSetList) UnmarshalJSON ¶ added in v0.6.1
func (vl *VirtualMachineInstanceReplicaSetList) UnmarshalJSON(data []byte) error
type VirtualMachineInstanceReplicaSetSpec ¶ added in v0.6.1
type VirtualMachineInstanceReplicaSetSpec 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. Selector *metav1.LabelSelector `json:"selector" valid:"required"` // Template describes the pods that will be created. Template *VirtualMachineInstanceTemplateSpec `json:"template" valid:"required"` // Indicates that the replica set is paused. // +optional Paused bool `json:"paused,omitempty" protobuf:"varint,7,opt,name=paused"` }
--- +k8s:openapi-gen=true
func (*VirtualMachineInstanceReplicaSetSpec) DeepCopy ¶ added in v0.6.1
func (in *VirtualMachineInstanceReplicaSetSpec) DeepCopy() *VirtualMachineInstanceReplicaSetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineInstanceReplicaSetSpec.
func (*VirtualMachineInstanceReplicaSetSpec) DeepCopyInto ¶ added in v0.6.1
func (in *VirtualMachineInstanceReplicaSetSpec) DeepCopyInto(out *VirtualMachineInstanceReplicaSetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VirtualMachineInstanceReplicaSetSpec) SwaggerDoc ¶ added in v0.6.1
func (VirtualMachineInstanceReplicaSetSpec) SwaggerDoc() map[string]string
type VirtualMachineInstanceReplicaSetStatus ¶ added in v0.6.1
type VirtualMachineInstanceReplicaSetStatus 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 []VirtualMachineInstanceReplicaSetCondition `json:"conditions,omitempty" optional:"true"` }
--- +k8s:openapi-gen=true
func (*VirtualMachineInstanceReplicaSetStatus) DeepCopy ¶ added in v0.6.1
func (in *VirtualMachineInstanceReplicaSetStatus) DeepCopy() *VirtualMachineInstanceReplicaSetStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineInstanceReplicaSetStatus.
func (*VirtualMachineInstanceReplicaSetStatus) DeepCopyInto ¶ added in v0.6.1
func (in *VirtualMachineInstanceReplicaSetStatus) DeepCopyInto(out *VirtualMachineInstanceReplicaSetStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VirtualMachineInstanceReplicaSetStatus) SwaggerDoc ¶ added in v0.6.1
func (VirtualMachineInstanceReplicaSetStatus) SwaggerDoc() map[string]string
type VirtualMachineInstanceSpec ¶ added in v0.6.1
type VirtualMachineInstanceSpec struct { // Specification of the desired behavior of the VirtualMachineInstance on the host. Domain DomainSpec `json:"domain"` // NodeSelector is a selector which must be true for the vmi to fit on a node. // Selector which must match a node's labels for the vmi 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 VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"` // List of volumes that can be mounted by disks belonging to the vmi. Volumes []Volume `json:"volumes,omitempty"` // Specifies the hostname of the vmi // If not specified, the hostname will be set to the name of the vmi, if dhcp or cloud-init is configured properly. // +optional Hostname string `json:"hostname,omitempty"` // If specified, the fully qualified vmi hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>". // If not specified, the vmi will not have a domainname at all. The DNS entry will resolve to the vmi, // no matter if the vmi itself can pick up a hostname. // +optional Subdomain string `json:"subdomain,omitempty"` // List of networks that can be attached to a vm's virtual interface. Networks []Network `json:"networks,omitempty"` }
VirtualMachineInstanceSpec is a description of a VirtualMachineInstance. --- +k8s:openapi-gen=true
func (*VirtualMachineInstanceSpec) DeepCopy ¶ added in v0.6.1
func (in *VirtualMachineInstanceSpec) DeepCopy() *VirtualMachineInstanceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineInstanceSpec.
func (*VirtualMachineInstanceSpec) DeepCopyInto ¶ added in v0.6.1
func (in *VirtualMachineInstanceSpec) DeepCopyInto(out *VirtualMachineInstanceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VirtualMachineInstanceSpec) SwaggerDoc ¶ added in v0.6.1
func (VirtualMachineInstanceSpec) SwaggerDoc() map[string]string
type VirtualMachineInstanceStatus ¶ added in v0.6.1
type VirtualMachineInstanceStatus struct { // NodeName is the name where the VirtualMachineInstance is currently running. NodeName string `json:"nodeName,omitempty"` // Conditions are specific points in VirtualMachineInstance's pod runtime. Conditions []VirtualMachineInstanceCondition `json:"conditions,omitempty"` // Phase is the status of the VirtualMachineInstance in kubernetes world. It is not the VirtualMachineInstance status, but partially correlates to it. Phase VirtualMachineInstancePhase `json:"phase,omitempty"` // Interfaces represent the details of available network interfaces. Interfaces []VirtualMachineInstanceNetworkInterface `json:"interfaces,omitempty"` }
VirtualMachineInstanceStatus represents information about the status of a VirtualMachineInstance. Status may trail the actual state of a system. --- +k8s:openapi-gen=true
func (*VirtualMachineInstanceStatus) DeepCopy ¶ added in v0.6.1
func (in *VirtualMachineInstanceStatus) DeepCopy() *VirtualMachineInstanceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineInstanceStatus.
func (*VirtualMachineInstanceStatus) DeepCopyInto ¶ added in v0.6.1
func (in *VirtualMachineInstanceStatus) DeepCopyInto(out *VirtualMachineInstanceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VirtualMachineInstanceStatus) SwaggerDoc ¶ added in v0.6.1
func (VirtualMachineInstanceStatus) SwaggerDoc() map[string]string
type VirtualMachineInstanceTemplateSpec ¶ added in v0.6.1
type VirtualMachineInstanceTemplateSpec struct { ObjectMeta metav1.ObjectMeta `json:"metadata,omitempty"` // VirtualMachineInstance Spec contains the VirtualMachineInstance specification. Spec VirtualMachineInstanceSpec `json:"spec,omitempty" valid:"required"` }
--- +k8s:openapi-gen=true
func (*VirtualMachineInstanceTemplateSpec) DeepCopy ¶ added in v0.6.1
func (in *VirtualMachineInstanceTemplateSpec) DeepCopy() *VirtualMachineInstanceTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineInstanceTemplateSpec.
func (*VirtualMachineInstanceTemplateSpec) DeepCopyInto ¶ added in v0.6.1
func (in *VirtualMachineInstanceTemplateSpec) DeepCopyInto(out *VirtualMachineInstanceTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VirtualMachineInstanceTemplateSpec) SwaggerDoc ¶ added in v0.6.1
func (VirtualMachineInstanceTemplateSpec) SwaggerDoc() map[string]string
type VirtualMachineList ¶
type VirtualMachineList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` // Items is a list of VirtualMachines Items []VirtualMachine `json:"items"` }
VirtualMachineList is a list of virtualmachines --- +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true
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) SwaggerDoc ¶
func (VirtualMachineList) SwaggerDoc() map[string]string
type VirtualMachineSpec ¶
type VirtualMachineSpec struct { // Running controls whether the associatied VirtualMachineInstance is created or not Running bool `json:"running"` // Template is the direct specification of VirtualMachineInstance Template *VirtualMachineInstanceTemplateSpec `json:"template"` }
VirtualMachineSpec describes how the proper VirtualMachine should look like --- +k8s:openapi-gen=true
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 { // Created indicates if the virtual machine is created in the cluster Created bool `json:"created,omitempty"` // Ready indicates if the virtual machine is running and ready Ready bool `json:"ready,omitempty"` // Hold the state information of the VirtualMachine and its VirtualMachineInstance Conditions []VirtualMachineCondition `json:"conditions,omitempty" optional:"true"` }
VirtualMachineStatus represents the status returned by the controller to describe how the VirtualMachine is doing --- +k8s:openapi-gen=true
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 vmi. // 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 vmi. --- +k8s:openapi-gen=true
func (*Volume) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Volume.
func (*Volume) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Volume) SwaggerDoc ¶
type VolumeSource ¶
type VolumeSource struct { // PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. // Directly attached to the vmi 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 vmi. 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"` // EmptyDisk represents a temporary disk which shares the vmis lifecycle. // More info: https://kubevirt.gitbooks.io/user-guide/disks-and-volumes.html // +optional EmptyDisk *EmptyDiskSource `json:"emptyDisk,omitempty"` }
Represents the source of a volume to mount. Only one of its members may be specified. --- +k8s:openapi-gen=true
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. --- +k8s:openapi-gen=true
func (*Watchdog) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Watchdog.
func (*Watchdog) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Watchdog) SwaggerDoc ¶
type WatchdogAction ¶
type WatchdogAction string
WatchdogAction defines the watchdog action, if a watchdog gets triggered. --- +k8s:openapi-gen=true
const ( // WatchdogActionPoweroff will poweroff the vmi if the watchdog gets triggered. WatchdogActionPoweroff WatchdogAction = "poweroff" // WatchdogActionReset will reset the vmi if the watchdog gets triggered. WatchdogActionReset WatchdogAction = "reset" // WatchdogActionShutdown will shutdown the vmi 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. --- +k8s:openapi-gen=true
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