vmi

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CRIOCPULoadBalancingAnnotation indicates that load balancing should be disabled for CPUs used by the container
	CRIOCPULoadBalancingAnnotation = "cpu-load-balancing.crio.io"

	// CRIOCPUQuotaAnnotation indicates that CPU quota should be disabled for CPUs used by the container
	CRIOCPUQuotaAnnotation = "cpu-quota.crio.io"

	// CRIOIRQLoadBalancingAnnotation indicates that IRQ load balancing should be disabled for CPUs used by the container
	CRIOIRQLoadBalancingAnnotation = "irq-load-balancing.crio.io"
)

Based on annotation names from: https://github.com/cri-o/cri-o/blob/fa0fa5de1c17ddd7b6fcdbc030b6b571ce37e643/pkg/annotations/annotations.go

View Source
const Disable = "disable"

Variables

This section is empty.

Functions

func CloudInit added in v0.2.0

func CloudInit(bootCommands []string) string

func New

func New(name string, options ...Option) *kvcorev1.VirtualMachineInstance

func Pointer

func Pointer[T any](v T) *T

Types

type Option

type Option func(vmi *kvcorev1.VirtualMachineInstance)

func WithAutoAttachSerialConsole

func WithAutoAttachSerialConsole() Option

func WithCloudInitNoCloudVolume

func WithCloudInitNoCloudVolume(name, userData string) Option

func WithConfigMapDisk added in v0.2.0

func WithConfigMapDisk(name, serial string) Option

func WithConfigMapVolume added in v0.2.0

func WithConfigMapVolume(name, configMapName string) Option

func WithContainerDisk

func WithContainerDisk(volumeName, imageName string) Option

func WithMemory

func WithMemory(hugePageSize, guestMemory string) Option

func WithNodeSelector

func WithNodeSelector(nodeName string) Option

func WithOwnerReference

func WithOwnerReference(ownerName, ownerUID string) Option

func WithReadinessFileProbe added in v0.2.0

func WithReadinessFileProbe(fileName string) Option

func WithRealtimeCPU

func WithRealtimeCPU(socketsCount, coresCount, threadsCount uint32) Option

func WithVirtIODisk

func WithVirtIODisk(name string) Option

func WithZeroTerminationGracePeriodSeconds

func WithZeroTerminationGracePeriodSeconds() Option

func WithoutAutoAttachGraphicsDevice

func WithoutAutoAttachGraphicsDevice() Option

func WithoutAutoAttachMemBalloon

func WithoutAutoAttachMemBalloon() Option

func WithoutCRIOCPULoadBalancing

func WithoutCRIOCPULoadBalancing() Option

func WithoutCRIOCPUQuota

func WithoutCRIOCPUQuota() Option

func WithoutCRIOIRQLoadBalancing

func WithoutCRIOIRQLoadBalancing() Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL