speaker

package
v1.10.4 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Overview

Package speaker abstracts the BGP speaker controller from MetalLB. This package provides BGP announcements based on K8s object event handling.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Speaker

type Speaker struct {
	*metallbspr.Controller

	lock.Mutex
	// contains filtered or unexported fields
}

Speaker represents the BGP speaker. It integrates Cilium's K8s events with MetalLB's logic for making BGP announcements. It is responsible for announcing BGP messages containing a loadbalancer IP address to peers.

func New

func New() *Speaker

New creates a new MetalLB BGP speaker controller.

func (*Speaker) OnDeleteService added in v1.10.0

func (s *Speaker) OnDeleteService(svc *slim_corev1.Service)

OnDeleteService notifies the Speaker of a delete of a service.

func (*Speaker) OnUpdateEndpoints added in v1.10.0

func (s *Speaker) OnUpdateEndpoints(eps *slim_corev1.Endpoints)

OnUpdateEndpoints notifies the Speaker of an update to the backends of a service.

func (*Speaker) OnUpdateNode added in v1.10.0

func (s *Speaker) OnUpdateNode(node *v1.Node)

OnUpdateNode notifies the Speaker of an update to a node.

func (*Speaker) OnUpdateService added in v1.10.0

func (s *Speaker) OnUpdateService(svc *slim_corev1.Service)

OnUpdateService notifies the Speaker of an update to a service.

func (*Speaker) RegisterSvcCache added in v1.10.0

func (s *Speaker) RegisterSvcCache(cache endpointsGetter)

RegisterSvcCache registers the K8s watcher cache with this Speaker.

Jump to

Keyboard shortcuts

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