Documentation
¶
Overview ¶
Package ovirt contains ovirt-specific structures for installer configuration and management. +k8s:deepcopy-gen=package,register
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPU ¶
type CPU struct {
// Sockets is the number of sockets for a VM.
// Total CPUs is (Sockets * Cores)
Sockets int32 `json:"sockets"`
// Cores is the number of cores per socket.
// Total CPUs is (Sockets * Cores)
Cores int32 `json:"cores"`
}
CPU defines the VM cpu, made of (Sockets * Cores).
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.
type Disk ¶
type Disk struct {
// SizeGB size of the bootable disk in GiB.
SizeGB int64 `json:"sizeGB"`
}
Disk defines a VM disk
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.
type MachinePool ¶
type MachinePool struct {
// CPU defines the VM CPU.
// +optional
CPU *CPU `json:"cpu,omitempty"`
// MemoryMB is the size of a VM's memory in MiBs.
// +optional
MemoryMB int32 `json:"memoryMB,omitempty"`
// OSDisk is the the root disk of the node.
// +optional
OSDisk *Disk `json:"osDisk,omitempty"`
// VMType defines the workload type of the VM.
// +kubebuilder:validation:Enum="";desktop;server;high_performance
// +optional
VMType VMType `json:"vmType,omitempty"`
}
MachinePool stores the configuration for a machine pool installed on ovirt.
func (*MachinePool) DeepCopy ¶
func (in *MachinePool) DeepCopy() *MachinePool
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachinePool.
func (*MachinePool) DeepCopyInto ¶
func (in *MachinePool) DeepCopyInto(out *MachinePool)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Platform ¶
type Platform struct {
// The target cluster under which all VMs will run
ClusterID string `json:"ovirt_cluster_id"`
// CredentialsSecretRef refers to a secret that contains the oVirt account access
// credentials with fields: ovirt_url, ovirt_username, ovirt_password, ovirt_ca_bundle
CredentialsSecretRef corev1.LocalObjectReference `json:"credentialsSecretRef"`
// CertificatesSecretRef refers to a secret that contains the oVirt CA certificates
// necessary for communicating with oVirt.
CertificatesSecretRef corev1.LocalObjectReference `json:"certificatesSecretRef"`
// The target storage domain under which all VM disk would be created.
StorageDomainID string `json:"storage_domain_id"`
// The target network of all the network interfaces of the nodes. Omitting defaults to ovirtmgmt
// network which is a default network for evert ovirt cluster.
NetworkName string `json:"ovirt_network_name,omitempty"`
}
Platform stores all the global oVirt configuration
func (*Platform) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Platform.
func (*Platform) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VMType ¶
type VMType string
VMType defines the type of the VM, which will change the VM configuration, like including or excluding devices (like excluding sound-card), device configuration (like using multi-queues for vNic), and several other configuration tweaks. This doesn't effect properties like CPU count and amount of memory.
const ( // VMTypeDesktop set the VM type to desktop. Virtual machines optimized to act // as desktop machines do have a sound card, use an image (thin allocation), // and are stateless. VMTypeDesktop VMType = "desktop" // VMTypeServer sets the VM type to server. Virtual machines optimized to act // as servers have no sound card, use a cloned disk image, and are not stateless. VMTypeServer VMType = "server" // VMTypeHighPerformance sets a VM type to high_performance which sets various // properties of a VM to optimize for performance, like enabling headless mode, // disabling usb, smart-card, and sound devices, enabling host cpu pass-through, // multi-queues for vNics and several more items. // See https://www.ovirt.org/develop/release-management/features/virt/high-performance-vm.html. VMTypeHighPerformance VMType = "high_performance" )