podwatch

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 21 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 string, podNameSpace string, containerID string, containerNetNS string, containerIFDev string, mtu int, podSriovVFDeviceID string, result *current.Result) error
}

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,
	interfaceConfigurator InterfaceConfigurator,
) *PodController

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 string     `json:"networkType,omitempty"`
	IPAM        IPAMConfig `json:"ipam,omitempty"`
}

Directories

Path Synopsis
Package testing is a generated GoMock package.
Package testing is a generated GoMock package.

Jump to

Keyboard shortcuts

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