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 (*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
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.