Documentation ¶
Index ¶
- Constants
- func IsLocalOnly(service *v1.Service) bool
- type LocalService
- type Server
- func (s *Server) GetLocalService(service *v1.Service, ep *v1.Endpoints) (localService *LocalService)
- func (s *Server) ParseServiceAnnotations(annotations map[string]string, name string) *serviceInfo
- func (s *Server) ServeService(t *tomb.Tomb) error
- func (s *Server) SetBGPConf(bgpConf *calicov3.BGPConfigurationSpec)
- func (s *Server) SetOurBGPSpec(nodeBGPSpec *common.LocalNodeSpec)
- type ServiceState
Constants ¶
View Source
const ( KeepOriginalPacketAnnotation string = "KeepOriginalPacket" HashConfigAnnotation string = "HashConfig" LBTypeAnnotation string = "LBType" )
Variables ¶
This section is empty.
Functions ¶
func IsLocalOnly ¶
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 (*Server) GetLocalService ¶
func (*Server) ParseServiceAnnotations ¶ added in v3.26.0
func (*Server) ServeService ¶
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
Click to show internal directories.
Click to hide internal directories.