controller

package
v0.0.0-...-33d3e69 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComputeReservationReconciler

type ComputeReservationReconciler struct {
	// Client for the kubernetes API.
	client.Client
	// Kubernetes scheme to use for the reservations.
	Scheme *runtime.Scheme
	// Configuration for the controller.
	Conf Config
}

ComputeReservationReconciler reconciles a ComputeReservation object

func (*ComputeReservationReconciler) 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 (*ComputeReservationReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type Config

type Config struct {
	// The endpoint where to find the nova external scheduler endpoint.
	Endpoints EndpointsConfig `json:"endpoints"`
	// Hypervisor types that should be managed.
	Hypervisors []string `json:"hypervisors"`
}

Configuration for the reservations operator.

type EndpointsConfig

type EndpointsConfig struct {
	// The nova external scheduler endpoint.
	NovaExternalScheduler string `json:"novaExternalScheduler"`
}

Endpoints for the reservations operator.

type Monitor

type Monitor struct {
	// Client for the kubernetes API.
	client.Client
	// contains filtered or unexported fields
}

Monitor for reservations metrics.

func (*Monitor) Collect

func (m *Monitor) Collect(ch chan<- prometheus.Metric)

Collect the metrics on-demand and send them to Prometheus.

func (*Monitor) Describe

func (m *Monitor) Describe(ch chan<- *prometheus.Desc)

Describe the metrics for Prometheus.

func (*Monitor) Init

func (m *Monitor) Init()

Initialize the metrics and bind them to the registry.

Jump to

Keyboard shortcuts

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