scheduling

package
v0.0.17 Latest Latest
Warning

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

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

Documentation

Overview

Package scheduling provides interface to implement workload schedulers

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSchedulingNoNode           = errors.New("no node fit for scheduling")
	ErrSchedulingNoReadyNode      = errors.New("no ready nodes available")      // NEW
	ErrSchedulingNoMatchingNode   = errors.New("no nodes match selector")       // NEW
	ErrSchedulingNodeDisconnected = errors.New("selected node is disconnected") // NEW
)

Functions

This section is empty.

Types

type Scheduler

type Scheduler interface {
	Score(context.Context, *tasksv1.Task) (map[string]float64, error)
	Schedule(context.Context, *tasksv1.Task) (*nodesv1.Node, error)
}

func NewHorizontalScheduler

func NewHorizontalScheduler(c *client.ClientSet) Scheduler

Jump to

Keyboard shortcuts

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