agent

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Overview

Package agent contains the libraries that drive the antrea-agent binary. antrea-agent is responsible for the Pod networking and policy implementation on a Kubernetes Node.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTransportIPNetDeviceByName added in v1.3.0

func GetTransportIPNetDeviceByName(ifaceName string, ovsBridgeName string) (*net.IPNet, *net.IPNet, *net.Interface, error)

func NewAntreaClientProvider

func NewAntreaClientProvider(config config.ClientConnectionConfiguration, kubeClient kubernetes.Interface) *antreaClientProvider

Types

type AntreaClientProvider

type AntreaClientProvider interface {
	GetAntreaClient() (versioned.Interface, error)
}

AntreaClientProvider provides a method to get Antrea client.

type Initializer

type Initializer struct {
	// contains filtered or unexported fields
}

Initializer knows how to setup host networking, OpenVSwitch, and Openflow.

func NewInitializer

func NewInitializer(
	k8sClient clientset.Interface,
	crdClient versioned.Interface,
	ovsBridgeClient ovsconfig.OVSBridgeClient,
	ovsCtlClient ovsctl.OVSCtlClient,
	ofClient openflow.Client,
	routeClient route.Interface,
	ifaceStore interfacestore.InterfaceStore,
	ovsBridge string,
	hostGateway string,
	mtu int,
	networkConfig *config.NetworkConfig,
	wireGuardConfig *config.WireGuardConfig,
	egressConfig *config.EgressConfig,
	serviceConfig *config.ServiceConfig,
	networkReadyCh chan<- struct{},
	stopCh <-chan struct{},
	nodeType config.NodeType,
	externalNodeNamespace string,
	enableProxy bool,
	proxyAll bool,
	connectUplinkToBridge bool,
	enableL7NetworkPolicy bool,
) *Initializer

func (*Initializer) ConnectUplinkToOVSBridge added in v1.6.0

func (i *Initializer) ConnectUplinkToOVSBridge() error

func (*Initializer) FlowRestoreComplete

func (i *Initializer) FlowRestoreComplete() error

func (*Initializer) GetNodeConfig

func (i *Initializer) GetNodeConfig() *config.NodeConfig

GetNodeConfig returns the NodeConfig.

func (*Initializer) GetWireGuardClient added in v1.3.0

func (i *Initializer) GetWireGuardClient() wireguard.Interface

GetNodeConfig returns the NodeConfig.

func (*Initializer) Initialize

func (i *Initializer) Initialize() error

Initialize sets up agent initial configurations.

func (*Initializer) RestoreOVSBridge added in v1.4.0

func (i *Initializer) RestoreOVSBridge()

RestoreOVSBridge returns immediately on Linux if connectUplinkToBridge is false. OVS is managed by Antrea in Linux, network config must be restored to uplink before Antrea Agent shutdown.

Directories

Path Synopsis
Package consistenthash provides an implementation of a ring hash.
Package consistenthash provides an implementation of a ring hash.
controller
nolint: unused // a lot of this code is unused for Windows since the multicast feature is not implemented yet
nolint: unused // a lot of this code is unused for Windows since the multicast feature is not implemented yet
secondarynetwork
Package util contains utility functions which are used in the agent implementation.
Package util contains utility functions which are used in the agent implementation.

Jump to

Keyboard shortcuts

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