controller

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: Apache-2.0 Imports: 28 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

View Source
const (
	OSUpdateType = "OperatingSystemUpdate"
	LibVirtType  = "LibVirtConnection"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HypervisorReconciler

type HypervisorReconciler struct {
	client.Client
	Scheme       *runtime.Scheme
	Systemd      systemd.Interface
	Libvirt      libvirt.Interface
	KernelReader kernel.Interface
	// contains filtered or unexported fields
}

HypervisorReconciler reconciles a Hypervisor object

func (*HypervisorReconciler) Reconcile

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

func (*HypervisorReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

func (*HypervisorReconciler) Start

func (r *HypervisorReconciler) Start(ctx context.Context) error

Start is called when the manager starts. It starts the libvirt event subscription to receive events when the hypervisor needs to be reconciled.

type SecretReconciler

type SecretReconciler struct {
	client.Client
	Scheme  *runtime.Scheme
	Systemd systemd.Interface
	// contains filtered or unexported fields
}

SecretReconciler reconciles a Secret object

func (*SecretReconciler) Reconcile

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

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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