Documentation ¶
Index ¶
- Constants
- func GenerateCNIAnnotation(namespace string, interfaces []v1.Interface, networks []v1.Network, ...) (string, error)
- func GenerateCNIAnnotationFromNameScheme(namespace string, interfaces []v1.Interface, networks []v1.Network, ...) (string, error)
- func LookupPodPrimaryIfaceName(networkStatuses []networkv1.NetworkStatus) string
- func NetAttachDefNamespacedName(namespace, fullNetworkName string) types.NamespacedName
- func NetworkStatusesFromPod(pod *k8scorev1.Pod) []networkv1.NetworkStatus
- func NewAnnotationData(namespace string, interfaces []v1.Interface, network v1.Network, ...) networkv1.NetworkSelectionElement
- func NonDefaultNetworkStatusIndexedByPodIfaceName(networkStatuses []networkv1.NetworkStatus) map[string]networkv1.NetworkStatus
- type NetworkAnnotationPool
Constants ¶
View Source
const DefaultNetworkCNIAnnotation = "v1.multus-cni.io/default-network"
DefaultNetworkCNIAnnotation is used when one wants to instruct Multus to connect the pod's primary interface to a network other than Multus's `clusterNetwork` field under /etc/cni/net.d The value of this annotation should be a NetworkAttachmentDefinition's name
Variables ¶
This section is empty.
Functions ¶
func GenerateCNIAnnotation ¶
func GenerateCNIAnnotation( namespace string, interfaces []v1.Interface, networks []v1.Network, config *virtconfig.ClusterConfig, ) (string, error)
func LookupPodPrimaryIfaceName ¶
func LookupPodPrimaryIfaceName(networkStatuses []networkv1.NetworkStatus) string
func NetAttachDefNamespacedName ¶
func NetAttachDefNamespacedName(namespace, fullNetworkName string) types.NamespacedName
func NetworkStatusesFromPod ¶
func NetworkStatusesFromPod(pod *k8scorev1.Pod) []networkv1.NetworkStatus
func NewAnnotationData ¶
func NonDefaultNetworkStatusIndexedByPodIfaceName ¶
func NonDefaultNetworkStatusIndexedByPodIfaceName(networkStatuses []networkv1.NetworkStatus) map[string]networkv1.NetworkStatus
Types ¶
type NetworkAnnotationPool ¶
type NetworkAnnotationPool struct {
// contains filtered or unexported fields
}
func (*NetworkAnnotationPool) Add ¶
func (nap *NetworkAnnotationPool) Add(multusNetworkAnnotation networkv1.NetworkSelectionElement)
func (*NetworkAnnotationPool) IsEmpty ¶
func (nap *NetworkAnnotationPool) IsEmpty() bool
func (*NetworkAnnotationPool) ToString ¶
func (nap *NetworkAnnotationPool) ToString() (string, error)
Click to show internal directories.
Click to hide internal directories.