egressservice

package
v0.0.0-...-6857a50 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const EgressServiceServedPodsAddrSetName = "egresssvc-served-pods"

Variables

This section is empty.

Functions

func GetEgressServiceAddrSetDbIDs

func GetEgressServiceAddrSetDbIDs(controller string) *libovsdbops.DbObjectIDs

Types

type Controller

type Controller struct {
	// network information
	util.NetInfo

	sync.Mutex
	// contains filtered or unexported fields
}

func NewController

func NewController(
	netInfo util.NetInfo,
	controllerName string,
	client kubernetes.Interface,
	nbClient libovsdbclient.Client,
	addressSetFactory addressset.AddressSetFactory,
	initClusterEgressPolicies InitClusterEgressPoliciesFunc,
	ensureNoRerouteNodePolicies EnsureNoRerouteNodePoliciesFunc,
	deleteLegacyDefaultNoRerouteNodePolicies DeleteLegacyDefaultNoRerouteNodePoliciesFunc,
	createDefaultRouteToExternalForIC CreateDefaultRouteToExternalFunc,
	stopCh <-chan struct{},
	esInformer egressserviceinformer.EgressServiceInformer,
	serviceInformer coreinformers.ServiceInformer,
	endpointSliceInformer discoveryinformers.EndpointSliceInformer,
	nodeInformer coreinformers.NodeInformer,
	zone string) (*Controller, error)

func (*Controller) Run

func (c *Controller) Run(wg *sync.WaitGroup, threadiness int) error

type CreateDefaultRouteToExternalFunc

type CreateDefaultRouteToExternalFunc func(nbClient libovsdbclient.Client, clusterRouter, gwRouterName string) error

type DeleteLegacyDefaultNoRerouteNodePoliciesFunc

type DeleteLegacyDefaultNoRerouteNodePoliciesFunc func(nbClient libovsdbclient.Client, clusterRouter, nodeName string) error

type EnsureNoRerouteNodePoliciesFunc

type EnsureNoRerouteNodePoliciesFunc func(client libovsdbclient.Client, addressSetFactory addressset.AddressSetFactory,
	controllerName, clusterRouter string, nodeLister corelisters.NodeLister) error

type InitClusterEgressPoliciesFunc

type InitClusterEgressPoliciesFunc func(client libovsdbclient.Client, addressSetFactory addressset.AddressSetFactory,
	controllerName, clusterRouter string) error

Jump to

Keyboard shortcuts

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