scheduler

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

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
}

Controller assigns sandboxes to nodes for execution. It watches sandbox entities and adds a ScheduleKey attribute to assign each sandbox to an available node.

Implements controller.ReconcileControllerI[*compute_v1alpha.Sandbox]

func NewController

func NewController(
	log *slog.Logger,
	eac *entityserver_v1alpha.EntityAccessClient,
) *Controller

NewController creates a new scheduler controller

func (*Controller) Init

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

Init initializes the controller. Required by ReconcileControllerI.

func (*Controller) Reconcile

func (c *Controller) Reconcile(ctx context.Context, sandbox *compute_v1alpha.Sandbox, meta *entity.Meta) error

Reconcile ensures the sandbox is assigned to a node. Called by the controller framework for both Add and Update events.

Jump to

Keyboard shortcuts

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