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 GetNamespaceAndNetworkName(namespace string, fullNetworkName string) (string, string)
- func NewAnnotationData(namespace string, interfaces []v1.Interface, network v1.Network, ...) networkv1.NetworkSelectionElement
- 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 NewAnnotationData ¶
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.