ipam

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WepTypeSts        = "StatefulSet"
	WepTypePod        = "Pod"
	WepTypeReuseIPPod = "ReuseIPPod"

	WepLabelStsOwnerKey     = "cce.io/owner"
	WepLabelSubnetIDKey     = "cce.io/subnet-id"
	WepLabelInstanceTypeKey = "cce.io/instance-type"
	WepFinalizer            = "cce-cni.cce.io"

	IPPoolCreationSourceCNI  = "cce-cni"
	MwepTypeRoce             = "roce"
	MwepTypeERI              = "eri"
	MwepLabelInstanceTypeKey = "cce.io/instance-type"
	MwepFinalizer            = "cce-cni-roce.cce.io"

	// RDMANodeLabelAvailableKey = true and RDMANodeLabelCapableKey = true is node selector of rdma-device-plugin
	RDMANodeLabelAvailableKey = "feature.node.kubernetes.io/custom-rdma.available"
	RDMANodeLabelCapableKey   = "feature.node.kubernetes.io/custom-rdma.capable"

	// Ref: https://github.com/kubernetes/kubernetes/pull/71653
	KubeletCniTimeout = network.CNITimeoutSec * time.Second

	NodeInstanceType = "node.kubernetes.io/instance-type"

	// CCECniTimeout set to be much less than kubelet cni timeout
	CCECniTimeout = 60 * time.Second

	// Ref: https://github.com/kubernetes/kubernetes/blob/v1.18.9/pkg/kubelet/pod_workers.go#L269-L271
	CniRetryTimeout = 2 * time.Second

	LeakedPrivateIPExpiredTimeout = 10 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExclusiveEniInterface

type ExclusiveEniInterface interface {
	Allocate(ctx context.Context, name, namespace, containerID string) (*v1alpha1.CrossVPCEni, error)
	Release(ctx context.Context, name, namespace, containerID string) (*v1alpha1.CrossVPCEni, error)
	Run(ctx context.Context, stopCh <-chan struct{}) error
}

type Interface

type Interface interface {
	Allocate(ctx context.Context, name, namespace, containerID string) (*v1alpha1.WorkloadEndpoint, error)
	Release(ctx context.Context, name, namespace, containerID string) (*v1alpha1.WorkloadEndpoint, error)
	Ready(ctx context.Context) bool
	Run(ctx context.Context, stopCh <-chan struct{}) error
}

type RoceInterface added in v1.5.4

type RoceInterface interface {
	Allocate(ctx context.Context, name, namespace, containerID string, mac string,
		ipType rpc.IPType) (*v1alpha1.WorkloadEndpoint, error)
	Release(ctx context.Context, name, namespace, containerID string) (*v1alpha1.WorkloadEndpoint, error)
	Run(ctx context.Context, stopCh <-chan struct{}) error
	Ready(ctx context.Context) bool
}

Directories

Path Synopsis
client/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
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