virtualmachine

package
v1.4.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 26 Imported by: 2

Documentation

Index

Constants

View Source
const (
	VirtualMachineCreatorNodeDriver = "docker-machine-driver-harvester"
)

Variables

This section is empty.

Functions

func Register

func Register(ctx context.Context, management *config.Management, _ config.Options) error

Types

type VMController

type VMController struct {
	// contains filtered or unexported fields
}

func (*VMController) SetHaltIfInsufficientResourceQuota added in v1.2.0

func (h *VMController) SetHaltIfInsufficientResourceQuota(_ string, vm *kubevirtv1.VirtualMachine) (*kubevirtv1.VirtualMachine, error)

func (*VMController) StoreRunStrategy added in v1.0.2

StoreRunStrategy stores the last running strategy into the annotation before the VM is stopped. As a workaround for the issue https://github.com/kubevirt/kubevirt/issues/7295

func (*VMController) SyncLabelsToVmi added in v1.1.0

SyncLabelsToVmi synchronizes the labels in the VM spec to the existing VMI without re-deployment

type VMIController

type VMIController struct {
	// contains filtered or unexported fields
}

func (*VMIController) ReconcileFromHostLabels added in v1.0.3

ReconcileFromHostLabels handles the propagation of metadata from node labels to VirtualMachineInstance annotations.

func (*VMIController) StopVMIfExceededQuota added in v1.2.0

type VMNetworkController

type VMNetworkController struct {
	// contains filtered or unexported fields
}

func (*VMNetworkController) SetDefaultNetworkMacAddress

SetDefaultNetworkMacAddress set the default mac address of networks using the initial allocated mac address from the VMI status, since the most guest OS will use the initial allocated mac address of its DHCP config, and on Kubevirt the VM restart it will re-allocate a new mac address which will lead the original network unreachable.

Jump to

Keyboard shortcuts

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