podwatch

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPAMConfig

type IPAMConfig struct {
	Type       string    `json:"type,omitempty"`
	Subnet     string    `json:"subnet,omitempty"`
	RangeStart string    `json:"rangeStart,omitempty"`
	RangeEnd   string    `json:"rangeEnd,omitempty"`
	Routes     RouteInfo `json:"routes,omitempty"`
	Gateway    string    `json:"gateway,omitempty"`
}

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,
	podCache cnipodcache.CNIPodInfoStore,
	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 {
	CNIVersion string `json:"cniVersion,omitempty"`
	Name       string `json:"name,omitempty"`
	// Set type to "antrea"
	Type string `json:"type,omitempty"`
	// Set networkType to "sriov"
	NetworkType cnipodcache.NetworkType `json:"networkType,omitempty"`

	MTU  int32      `json:"mtu,omitempty"`
	VLAN int32      `json:"vlan,omitempty"`
	IPAM IPAMConfig `json:"ipam,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