nodecontroller

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: Apache-2.0 Imports: 24 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

This section is empty.

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 containers matches with containers in the runtime environment. It removes any containers 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) 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 WithLogger

func WithLogger(l logger.Logger) NewOption

func WithName

func WithName(s string) NewOption

func WithVolumeAttacher

func WithVolumeAttacher(a volume.Attacher) NewOption

Jump to

Keyboard shortcuts

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