Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEgressIPScheduler ¶ added in v1.11.0
func NewEgressIPScheduler(cluster memberlist.Interface, egressInformer crdinformers.EgressInformer, nodeInformer corev1informers.NodeInformer, maxEgressIPsPerNode int) *egressIPScheduler
Types ¶
type EgressController ¶
type EgressController struct {
// contains filtered or unexported fields
}
func NewEgressController ¶
func NewEgressController( ofClient openflow.Client, antreaClientGetter agent.AntreaClientProvider, crdClient clientsetversioned.Interface, ifaceStore interfacestore.InterfaceStore, routeClient route.Interface, nodeName string, nodeTransportInterface string, cluster memberlist.Interface, egressInformer crdinformers.EgressInformer, nodeInformers coreinformers.NodeInformer, podUpdateSubscriber channel.Subscriber, serviceCIDRInterface servicecidr.Interface, maxEgressIPsPerNode int, ) (*EgressController, error)
func (*EgressController) GetEgress ¶ added in v1.10.0
func (c *EgressController) GetEgress(ns, podName string) (string, error)
GetEgress returns effective Egress applied on a Pod.
func (*EgressController) GetEgressIPByMark ¶ added in v1.10.0
func (c *EgressController) GetEgressIPByMark(mark uint32) (string, error)
GetEgressIPByMark returns the Egress IP associated with the snatMark.
func (*EgressController) Run ¶
func (c *EgressController) Run(stopCh <-chan struct{})
Run will create defaultWorkers workers (go routines) which will process the Egress events from the workqueue.
type EgressesByCreationTimestamp ¶ added in v1.11.0
EgressesByCreationTimestamp sorts a list of Egresses by creation timestamp.
func (EgressesByCreationTimestamp) Len ¶ added in v1.11.0
func (o EgressesByCreationTimestamp) Len() int
func (EgressesByCreationTimestamp) Less ¶ added in v1.11.0
func (o EgressesByCreationTimestamp) Less(i, j int) bool
func (EgressesByCreationTimestamp) Swap ¶ added in v1.11.0
func (o EgressesByCreationTimestamp) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.