Documentation ¶
Index ¶
- Constants
- func ApplyDynamicIfaceRequestOnVMI(vm *v1.VirtualMachine, vmi *v1.VirtualMachineInstance, hasOrdinalIfaces bool) *v1.VirtualMachineInstanceSpec
- func CalculateInterfacesAndNetworksForMultusAnnotationUpdate(vmi *v1.VirtualMachineInstance) ([]v1.Interface, []v1.Network, bool)
- func ClearDetachedInterfaces(specIfaces []v1.Interface, specNets []v1.Network, ...) ([]v1.Interface, []v1.Network)
- func GetNetworkToResourceMap(virtClient kubecli.KubevirtClient, vmi *v1.VirtualMachineInstance) (networkToResourceMap map[string]string, err error)
- type VMNetController
Constants ¶
View Source
const MULTUS_RESOURCE_NAME_ANNOTATION = "k8s.v1.cni.cncf.io/resourceName"
Variables ¶
This section is empty.
Functions ¶
func ApplyDynamicIfaceRequestOnVMI ¶
func ApplyDynamicIfaceRequestOnVMI(vm *v1.VirtualMachine, vmi *v1.VirtualMachineInstance, hasOrdinalIfaces bool) *v1.VirtualMachineInstanceSpec
func ClearDetachedInterfaces ¶
func GetNetworkToResourceMap ¶
func GetNetworkToResourceMap(virtClient kubecli.KubevirtClient, vmi *v1.VirtualMachineInstance) (networkToResourceMap map[string]string, err error)
Types ¶
type VMNetController ¶
type VMNetController struct {
// contains filtered or unexported fields
}
func NewVMNetController ¶
func NewVMNetController(clientset kubevirt.Interface, podGetter podFromVMIGetter) *VMNetController
func (*VMNetController) Sync ¶
func (v *VMNetController) Sync(vm *v1.VirtualMachine, vmi *v1.VirtualMachineInstance) (*v1.VirtualMachine, error)
Click to show internal directories.
Click to hide internal directories.