controllers

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLoadBalancerNamespace added in v0.1.8

func GetLoadBalancerNamespace(kc *infrav1.KubevirtCluster, infraClusterNamespace string) string

Types

type KubevirtClusterReconciler

type KubevirtClusterReconciler struct {
	client.Client
	// APIReader is used to prune the Cloud Controller resources for the given cluster:
	// this client doesn't locally cache the resources upon a GET/LIST request,
	// decreasing memory consumption and avoiding granting further RBAC verbs.
	APIReader    client.Reader
	InfraCluster infracluster.InfraCluster
	Log          logr.Logger
}

KubevirtClusterReconciler reconciles a KubevirtCluster object.

func (*KubevirtClusterReconciler) Reconcile

func (r *KubevirtClusterReconciler) Reconcile(goctx gocontext.Context, req ctrl.Request) (_ ctrl.Result, rerr error)

Reconcile reads that state of the cluster for a KubevirtCluster object and makes changes based on the state read and what is in the KubevirtCluster.Spec.

func (*KubevirtClusterReconciler) SetupWithManager

func (r *KubevirtClusterReconciler) SetupWithManager(ctx gocontext.Context, mgr ctrl.Manager) error

SetupWithManager will add watches for this controller.

type KubevirtMachineReconciler

type KubevirtMachineReconciler struct {
	client.Client
	InfraCluster    infracluster.InfraCluster
	WorkloadCluster workloadcluster.WorkloadCluster
	MachineFactory  kubevirt.MachineFactory
}

KubevirtMachineReconciler reconciles a KubevirtMachine object.

func (*KubevirtMachineReconciler) KubevirtClusterToKubevirtMachines

func (r *KubevirtMachineReconciler) KubevirtClusterToKubevirtMachines(ctx gocontext.Context, o client.Object) []ctrl.Request

KubevirtClusterToKubevirtMachines is a handler.ToRequestsFunc to be used to enqueue requests for reconciliation of KubevirtMachines.

func (*KubevirtMachineReconciler) Reconcile

func (r *KubevirtMachineReconciler) Reconcile(goctx gocontext.Context, req ctrl.Request) (_ ctrl.Result, rerr error)

Reconcile handles KubevirtMachine events.

func (*KubevirtMachineReconciler) SetupWithManager

func (r *KubevirtMachineReconciler) SetupWithManager(goctx gocontext.Context, mgr ctrl.Manager, options controller.Options) error

SetupWithManager will add watches for this controller.

Jump to

Keyboard shortcuts

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