Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultNS = "harvester-system" KubevirtCR = "kubevirt" )
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register( ctx context.Context, pdcClient v1beta1gen.PCIDeviceClaimController, pdClient v1beta1gen.PCIDeviceController, ) error
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
Click to show internal directories.
Click to hide internal directories.