Documentation ¶
Index ¶
- type Deps
- type Renderer
- func (r *Renderer) AddService(service *renderer.ContivService) error
- func (r *Renderer) AfterInit() error
- func (r *Renderer) Close() error
- func (r *Renderer) DeleteService(service *renderer.ContivService, ...) error
- func (r *Renderer) Init(snatOnly bool) error
- func (r *Renderer) Resync(resyncEv *renderer.ResyncEventData) error
- func (r *Renderer) UpdateLocalBackendIfs(oldIfNames, newIfNames renderer.Interfaces) error
- func (r *Renderer) UpdateLocalFrontendIfs(oldIfNames, newIfNames renderer.Interfaces) error
- func (r *Renderer) UpdateNodePortServices(nodeIPs *renderer.IPAddresses, npServices []*renderer.ContivService) error
- func (r *Renderer) UpdateService(oldService, newService *renderer.ContivService, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deps ¶
type Deps struct { Log logging.Logger ContivConf contivconf.API NodeSync nodesync.API PodManager podmanager.API IPAM ipam.API IPNet ipnet.API ConfigRetriever controller.ConfigRetriever UpdateTxnFactory func(change string) (txn controller.UpdateOperations) ResyncTxnFactory func() (txn controller.ResyncOperations) }
Deps lists dependencies of the Renderer.
type Renderer ¶
type Renderer struct { Deps // contains filtered or unexported fields }
Renderer implements rendering of services for SRv6 in VPP.
func (*Renderer) AddService ¶
func (r *Renderer) AddService(service *renderer.ContivService) error
AddService installs VPP config for a newly added service.
func (*Renderer) DeleteService ¶
func (r *Renderer) DeleteService(service *renderer.ContivService, otherExistingServices []*renderer.ContivService) error
DeleteService removes VPP config associated with a freshly un-deployed service.
func (*Renderer) Init ¶
Init initializes the renderer. Set <snatOnly> to true if the renderer should only configure SNAT and leave services to another renderer.
func (*Renderer) Resync ¶
func (r *Renderer) Resync(resyncEv *renderer.ResyncEventData) error
Resync completely replaces the current VPP service configuration with the provided full state of K8s services.
func (*Renderer) UpdateLocalBackendIfs ¶
func (r *Renderer) UpdateLocalBackendIfs(oldIfNames, newIfNames renderer.Interfaces) error
UpdateLocalBackendIfs gives an updated about a changed set of backend interfaces (VPP specific).
func (*Renderer) UpdateLocalFrontendIfs ¶
func (r *Renderer) UpdateLocalFrontendIfs(oldIfNames, newIfNames renderer.Interfaces) error
UpdateLocalFrontendIfs gives an update about a changed set of Frontend interfaces (VPP specific).
func (*Renderer) UpdateNodePortServices ¶
func (r *Renderer) UpdateNodePortServices(nodeIPs *renderer.IPAddresses, npServices []*renderer.ContivService) error
UpdateNodePortServices is called whenever the set of node IPs in the cluster changes.
func (*Renderer) UpdateService ¶
func (r *Renderer) UpdateService(oldService, newService *renderer.ContivService, otherExistingServices []*renderer.ContivService) error
UpdateService updates VPP config for a changed service.