multipool

package
v1.14.0-snapshot.3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAllocatorNotReady = errAllocatorNotReady{}

Functions

This section is empty.

Types

type Allocator

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

Allocator implements allocator.AllocatorProvider

func (*Allocator) Init

func (a *Allocator) Init(ctx context.Context) (err error)

func (*Allocator) Start

type NodeHandler

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

func NewNodeHandler

func NewNodeHandler(manager *PoolAllocator, nodeUpdater ipam.CiliumNodeGetterUpdater) *NodeHandler

func (*NodeHandler) Create

func (n *NodeHandler) Create(resource *v2.CiliumNode) bool

func (*NodeHandler) Delete

func (n *NodeHandler) Delete(resource *v2.CiliumNode)

func (*NodeHandler) Resync

func (n *NodeHandler) Resync(ctx context.Context, time time.Time)

func (*NodeHandler) Update

func (n *NodeHandler) Update(resource *v2.CiliumNode) bool

type PoolAllocator

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

func NewPoolAllocator

func NewPoolAllocator() *PoolAllocator

func (*PoolAllocator) AddPool

func (p *PoolAllocator) AddPool(poolName string, ipv4CIDRs []string, ipv4MaskSize int, ipv6CIDRs []string, ipv6MaskSize int) error

func (*PoolAllocator) AllocateToNode

func (p *PoolAllocator) AllocateToNode(cn *v2.CiliumNode) error

func (*PoolAllocator) AllocatedPools

func (p *PoolAllocator) AllocatedPools(targetNode string) (pools []types.IPAMPoolAllocation)

func (*PoolAllocator) ReleaseNode

func (p *PoolAllocator) ReleaseNode(nodeName string) error

func (*PoolAllocator) RestoreFinished

func (p *PoolAllocator) RestoreFinished()

Jump to

Keyboard shortcuts

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