services

package
v3.27.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0, Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeepOriginalPacketAnnotation string = "KeepOriginalPacket"
	HashConfigAnnotation         string = "HashConfig"
	LBTypeAnnotation             string = "LBType"
)

Variables

This section is empty.

Functions

func IsLocalOnly

func IsLocalOnly(service *v1.Service) bool

Types

type LocalService

type LocalService struct {
	Entries        []types.CnatTranslateEntry
	SpecificRoutes []net.IP
	ServiceID      string
}

*

  • Service descriptions from the API are resolved into
  • slices of LocalService, this allows to diffs between
  • previous & expected state in VPP

type Server

type Server struct {
	BGPConf *calicov3.BGPConfigurationSpec
	// contains filtered or unexported fields
}

func NewServiceServer

func NewServiceServer(vpp *vpplink.VppLink, k8sclient *kubernetes.Clientset, log *logrus.Entry) *Server

func (*Server) GetLocalService

func (s *Server) GetLocalService(service *v1.Service, ep *v1.Endpoints) (localService *LocalService)

func (*Server) ParseServiceAnnotations added in v3.26.0

func (s *Server) ParseServiceAnnotations(annotations map[string]string, name string) *serviceInfo

func (*Server) ServeService

func (s *Server) ServeService(t *tomb.Tomb) error

func (*Server) SetBGPConf

func (s *Server) SetBGPConf(bgpConf *calicov3.BGPConfigurationSpec)

func (*Server) SetOurBGPSpec

func (s *Server) SetOurBGPSpec(nodeBGPSpec *common.LocalNodeSpec)

type ServiceState

type ServiceState struct {
	OwnerServiceID string /* serviceID(service.ObjectMeta) of the service that created this entry */
	VppID          uint32 /* cnat translation ID in VPP */
}

*

  • Store VPP's state in a map [CnatTranslateEntry.Key()]->ServiceState

Jump to

Keyboard shortcuts

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