podwatch

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPAMAllocator added in v1.15.0

type IPAMAllocator interface {
	SecondaryNetworkAllocate(podOwner *crdv1a2.PodOwner, networkConfig *cnitypes.NetworkConfig) (*ipam.IPAMResult, error)
	SecondaryNetworkRelease(podOwner *crdv1a2.PodOwner) error
}

type InterfaceConfigurator added in v1.9.0

type InterfaceConfigurator interface {
	ConfigureSriovSecondaryInterface(podName, podNamespace, containerID, containerNetNS, containerInterfaceName string, mtu int, podSriovVFDeviceID string, result *current.Result) error
	ConfigureVLANSecondaryInterface(podName, podNamespace, containerID, containerNetNS, containerInterfaceName string, mtu int, vlanID uint16, result *current.Result) (string, error)
	DeleteVLANSecondaryInterface(containerID, hostInterfaceName, ovsPortUUID string) error
}

type KubeletPodResources added in v1.14.0

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

type PodController

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

func NewPodController

func NewPodController(
	kubeClient clientset.Interface,
	netAttachDefClient netdefclient.K8sCniCncfIoV1Interface,
	podInformer cache.SharedIndexInformer,
	nodeName string,
	podUpdateSubscriber channel.Subscriber,
	ovsBridgeClient ovsconfig.OVSBridgeClient,
) (*PodController, error)

func (*PodController) Run

func (pc *PodController) Run(stopCh <-chan struct{})

func (*PodController) Worker

func (pc *PodController) Worker()

type RouteInfo

type RouteInfo struct {
	Dst string `json:"dst,omitempty"`
}

type SecondaryNetworkConfig

type SecondaryNetworkConfig struct {
	types.NetworkConfig
	NetworkType cnipodcache.NetworkType `json:"networkType,omitempty"`
	// VLAN ID of the OVS port. Applicable only to the VLAN network type. If a
	// non-zero VLAN is specified, it will override the VLAN in the Antrea
	// IPAM IPPool subnet.
	VLAN int32 `json:"vlan,omitempty"`
}

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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