nodecontroller

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Overview

Package nodecontroller implemenets controller and provides logic for multiplexing node management

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Uint64ToBytes added in v0.0.18

func Uint64ToBytes(val uint64) []byte

Uint64ToBytes converts the given uint64 value to slice of bytes.

Types

type Controller

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

func New

func New(c *client.ClientSet, n *nodesv1.Node, rt runtime.Runtime, opts ...NewOption) (*Controller, error)

func (*Controller) Reconcile

func (c *Controller) Reconcile(ctx context.Context) error

Reconcile ensures that desired tasks matches with tasks in the runtime environment. It removes any tasks that are not desired (missing from the server) and adds those missing from runtime. It is preferrably run early during startup of the controller.

func (*Controller) Report added in v0.0.18

func (c *Controller) Report(report *typesv1.ConditionReport)

func (*Controller) Run

func (c *Controller) Run(ctx context.Context)

Run implements controller

type NewOption

type NewOption func(c *Controller)

func WithConfig

func WithConfig(n *nodesv1.Node) NewOption

func WithExchange added in v0.0.12

func WithExchange(e *events.Exchange) NewOption

func WithLeaseRenewalInterval added in v0.0.12

func WithLeaseRenewalInterval(d time.Duration) NewOption

func WithLogger

func WithLogger(l logger.Logger) NewOption

func WithName

func WithName(s string) NewOption

func WithNetworkManager added in v0.0.15

func WithNetworkManager(m networking.Manager) NewOption

func WithTokenStore added in v0.0.18

func WithTokenStore(s store.Store) NewOption

func WithVolumeAttacher

func WithVolumeAttacher(a volume.Attacher) NewOption

func WithWorkPool added in v0.0.18

func WithWorkPool(p *queue.WorkPool) NewOption

Jump to

Keyboard shortcuts

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