allocator

package
v1.20.0-pre.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CiliumNodeGetterUpdater

type CiliumNodeGetterUpdater interface {
	Create(node *v2.CiliumNode) (*v2.CiliumNode, error)
	Update(origResource, newResource *v2.CiliumNode) (*v2.CiliumNode, error)
	UpdateStatus(origResource, newResource *v2.CiliumNode) (*v2.CiliumNode, error)
	Get(name string) (*v2.CiliumNode, error)
}

CiliumNodeGetterUpdater defines the interface used to interact with the k8s apiserver to retrieve and update the CiliumNode custom resource

type NodeEventHandler

type NodeEventHandler interface {
	Upsert(resource *v2.CiliumNode)
	Delete(resource *v2.CiliumNode)
	Resync(context.Context, time.Time)
	Stop()
}

NodeEventHandler should implement the behavior to handle CiliumNode

type NodeEventHandlerFactory

type NodeEventHandlerFactory func(ctx context.Context) (NodeEventHandler, error)

NodeEventHandlerFactory is a function type that returns a NodeEventHandler, used to decouple the allocator logic from the specific implementation of the CiliumNode event handling.

type NodeWatcherJobFactory

type NodeWatcherJobFactory func(nmFactory NodeEventHandlerFactory) job.Job

NodeWatcherJobFactory is a function type that returns a Job responsible for watching CiliumNode resources and triggering the appropriate events in the allocator.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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