pcideviceclaim

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultNS  = "harvester-system"
	KubevirtCR = "kubevirt"
)

Variables

This section is empty.

Functions

Types

type Controller

type Controller struct {
	PCIDeviceClaims v1beta1gen.PCIDeviceClaimController
}

type Handler

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

func (*Handler) OnDeviceChange added in v0.2.4

func (h *Handler) OnDeviceChange(_ string, _ string, obj runtime.Object) ([]relatedresource.Key, error)

OnDeviceChange will watch the PCIDevice objects and trigger a reconcile of related PCIDeviceClaims if the underlying PCIDevice objects has a change. this can happen at reboot when device driver is updated to reflect in use device driver

func (*Handler) OnRemove added in v0.2.1

func (h *Handler) OnRemove(_ string, pdc *v1beta1.PCIDeviceClaim) (*v1beta1.PCIDeviceClaim, error)

When a PCIDeviceClaim is removed, we need to unbind the device from the vfio-pci driver

Jump to

Keyboard shortcuts

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