controllers

package
v0.0.0-...-bba01fb Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DEFAULT_PASSWORD_LENGTH = 24
View Source
const (
	KeyProblemName = "problemName"
)
View Source
const MAX_USED_PERCENT float64 = 100.0

Variables

This section is empty.

Functions

This section is empty.

Types

type CandidateWorker

type CandidateWorker struct {
	// Name is the name of the worker.
	Name string

	// Score is the score of the worker (0..1).
	Score float64
}

type MetricsExporter

type MetricsExporter struct {
	client.Client

	Log logr.Logger

	ScrapeInterval time.Duration
}

func (*MetricsExporter) Start

func (me *MetricsExporter) Start(ctx context.Context) error

Start implements manager.Runnable

type ProblemEnvironmentReconciler

type ProblemEnvironmentReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder

	Parameters SchedulerParameters
}

ProblemEnvironmentReconciler reconciles a ProblemEnvironment object

func (*ProblemEnvironmentReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*ProblemEnvironmentReconciler) SetupWithManager

func (r *ProblemEnvironmentReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ProblemReconciler

type ProblemReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

ProblemReconciler reconciles a Problem object

func (*ProblemReconciler) Reconcile

func (r *ProblemReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*ProblemReconciler) SetupWithManager

func (r *ProblemReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type SchedulerParameters

type SchedulerParameters struct {
	CPUWeight       float64
	MemoryWeight    float64
	MemoryThreshold float64
	Temperature     float64
}

type WorkerController

type WorkerController struct {
	client.Client
	// contains filtered or unexported fields
}

func NewWorkerController

func NewWorkerController(
	client client.Client,
	workerMonitorPeriod time.Duration,
	recorder record.EventRecorder,
) *WorkerController

func (*WorkerController) Start

func (wc *WorkerController) Start(ctx context.Context) error

Start implements manager.Runnable

Jump to

Keyboard shortcuts

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