metallb

package
v0.13.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ControllerLabelSelector = "component=controller"
)
View Source
var Namespace = defaultNameSpace

Functions

func BGPPeerSecretReferences added in v0.13.0

func BGPPeerSecretReferences(containers []*frrcontainer.FRR) map[string]corev1.Secret

func ControllerPod

func ControllerPod(cs clientset.Interface) (*corev1.Pod, error)

ControllerPod returns the metallb controller pod.

func GetBGPPeerSecretName added in v0.13.0

func GetBGPPeerSecretName(asn uint32, port uint16) string

func PeersForContainers

func PeersForContainers(containers []*frrcontainer.FRR, ipFamily ipfamily.Family, tweak ...func(p *metallbv1beta2.BGPPeer)) []metallbv1beta2.BGPPeer

PeersForContainers returns the metallb config peers related to the given containers.

func SpeakerPods

func SpeakerPods(cs clientset.Interface) ([]*corev1.Pod, error)

SpeakerPods returns the set of pods running the speakers.

func WithBFD

func WithBFD(peers []metallbv1beta2.BGPPeer, bfdProfile string) []metallbv1beta2.BGPPeer

WithBFD sets the given bfd profile to the peers.

func WithRouterID

func WithRouterID(peers []metallbv1beta2.BGPPeer, routerID string) []metallbv1beta2.BGPPeer

WithRouterID sets the given routerID to the peers.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL