Documentation ¶
Index ¶
- func GetLoadBalancerNamespace(kc *infrav1.KubevirtCluster, infraClusterNamespace string) string
- type KubevirtClusterReconciler
- type KubevirtMachineReconciler
- func (r *KubevirtMachineReconciler) KubevirtClusterToKubevirtMachines(ctx gocontext.Context, o client.Object) []ctrl.Request
- func (r *KubevirtMachineReconciler) Reconcile(goctx gocontext.Context, req ctrl.Request) (_ ctrl.Result, rerr error)
- func (r *KubevirtMachineReconciler) SetupWithManager(goctx gocontext.Context, mgr ctrl.Manager, options controller.Options) error
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.