kpis

package
v0.0.0-...-ccb81e8 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 26 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// Kubernetes client to manage/fetch resources.
	client.Client
	// Configuration for the controller.
	Config ControllerConfig
	// contains filtered or unexported fields
}

The kpi controller checks the status of kpi dependencies and populates the kpi status accordingly.

func (*Controller) InitAllKPIs

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

Handle the startup of the manager and initialize the kpis to be used.

func (*Controller) Reconcile

func (c *Controller) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

This loop will be called by the controller-runtime for each kpi resource that needs to be reconciled.

func (*Controller) SetupWithManager

func (c *Controller) SetupWithManager(mgr manager.Manager, mcl *multicluster.Client) error

type ControllerConfig

type ControllerConfig struct {
	// The controller will scope to objects using this scheduling domain name.
	// This allows multiple controllers to coexist in the same cluster without
	// interfering with each other's decisions.
	SchedulingDomain v1alpha1.SchedulingDomain `json:"schedulingDomain"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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