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 GenerateMultusCNIAnnotation(namespace string, interfaces []v1.Interface, networks []v1.Network, ...) (string, error)
- func GenerateMultusCNIAnnotationFromNameScheme(namespace string, interfaces []v1.Interface, networks []v1.Network, ...) (string, error)
- func GeneratePodAnnotations(networks []virtv1.Network, interfaces []virtv1.Interface, ...) map[string]string
- func GetNetworkToResourceMap(virtClient kubecli.KubevirtClient, vmi *v1.VirtualMachineInstance) (networkToResourceMap map[string]string, err error)
- func NonDefaultMultusNetworksIndexedByIfaceName(pod *k8sv1.Pod) map[string]networkv1.NetworkStatus
Constants ¶
View Source
const MULTUS_DEFAULT_NETWORK_CNI_ANNOTATION = "v1.multus-cni.io/default-network"
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 GenerateMultusCNIAnnotation ¶
func GenerateMultusCNIAnnotation(namespace string, interfaces []v1.Interface, networks []v1.Network, config *virtconfig.ClusterConfig) (string, error)
func GeneratePodAnnotations ¶
func GetNetworkToResourceMap ¶
func GetNetworkToResourceMap(virtClient kubecli.KubevirtClient, vmi *v1.VirtualMachineInstance) (networkToResourceMap map[string]string, err error)
func NonDefaultMultusNetworksIndexedByIfaceName ¶
func NonDefaultMultusNetworksIndexedByIfaceName(pod *k8sv1.Pod) map[string]networkv1.NetworkStatus
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.