 Documentation
      ¶
      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 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) (*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
      ¶
      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. | 
 Click to show internal directories. 
   Click to hide internal directories.