Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register( ctx context.Context, restClient kubernetes.Interface, nodes ctlcorev1.NodeController, vmis ctlv1.VirtualMachineInstanceController, kubevirtClient kubecli.KubevirtClient, nodeToVMName *sync.Map, namespace string, )
Register the controller is helping to re-sync harvester node topology labels to guest cluster nodes. when the migration is completed, the controller will re-sync the labels to guest cluster nodes. this is to make sure the node topology labels are always up-to-date.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) OnVmiChanged ¶
func (h *Handler) OnVmiChanged(_ string, vmi *kubevirtv1.VirtualMachineInstance) (*kubevirtv1.VirtualMachineInstance, error)
Click to show internal directories.
Click to hide internal directories.