ippool

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: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IPResourceFlags

func IPResourceFlags(flagset *pflag.FlagSet)

func NewBBCIPResourceManager

func NewBBCIPResourceManager(kubeClient kubernetes.Interface, preAttachedENINum int, node *corev1.Node) *bbcIPResourceManager

func NewBCCIPResourceManager

func NewBCCIPResourceManager(kubeClient kubernetes.Interface, preAttachedENINum int, node *corev1.Node, bccInstance *bccapi.InstanceModel) *bccIPResourceManager

func NewCrossVPCEniResourceManager

func NewCrossVPCEniResourceManager(kubeClient kubernetes.Interface, node *corev1.Node, bccInstance *bccapi.InstanceModel) *crossVPCEniResourceManager

func NewRangeIPResourceManager

func NewRangeIPResourceManager(kubeClient kubernetes.Interface, preAttachedENINum int, node *corev1.Node) *rangeIPResourceManager

Types

type Controller

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

Controller manipulates IPPool CRDs

func New

func New(
	kubeClient kubernetes.Interface,
	cloudClient cloud.Interface,
	crdClient clientset.Interface,
	cniMode ccetypes.ContainerNetworkMode,
	nodeName string,
	instanceID string,
	instanceType metadata.InstanceTypeEx,
	eniSubnetList []string,
	securityGroupList []string,
	enterpriseSecurityGroupList []string,
	preAttachedENINum int,
	podSubnetList []string,
) *Controller

func (*Controller) SyncNode

func (c *Controller) SyncNode(nodeKey string, nodeLister corelisters.NodeLister) error

type IPResourceManager

type IPResourceManager interface {
	SyncCapacity(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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