Documentation
¶
Overview ¶
Package controller contains the HarvesterCluster controller logic.
Package controller contains the HarvesterMachine controller logic.
Index ¶
- type ClusterScope
- type HarvesterClusterReconciler
- func (r *HarvesterClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *HarvesterClusterReconciler) ReconcileDelete(scope *ClusterScope) (ctrl.Result, error)
- func (r *HarvesterClusterReconciler) ReconcileNormal(scope *ClusterScope) (res ctrl.Result, err error)
- func (r *HarvesterClusterReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error
- type HarvesterMachineReconciler
- func (r *HarvesterMachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, rerr error)
- func (r *HarvesterMachineReconciler) ReconcileDelete(hvScope Scope) (res ctrl.Result, rerr error)
- func (r *HarvesterMachineReconciler) ReconcileNormal(hvScope *Scope) (res reconcile.Result, rerr error)
- func (r *HarvesterMachineReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error
- type Scope
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterScope ¶
type ClusterScope struct { Cluster *clusterv1.Cluster HarvesterCluster *infrav1.HarvesterCluster Logger logr.Logger Ctx context.Context HarvesterClient lbclient.Interface ReconcileClient client.Client }
ClusterScope is a struct that contains the necessary data needed for a HarvesterCluster controller.
type HarvesterClusterReconciler ¶
HarvesterClusterReconciler reconciles a HarvesterCluster object.
func (*HarvesterClusterReconciler) Reconcile ¶
func (r *HarvesterClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile reads that state of the cluster for a HarvesterCluster object and makes changes based on the state read.
func (*HarvesterClusterReconciler) ReconcileDelete ¶
func (r *HarvesterClusterReconciler) ReconcileDelete(scope *ClusterScope) (ctrl.Result, error)
ReconcileDelete is the part of the Reconcialiation that deletes a HarvesterCluster and everything which depends on it.
func (*HarvesterClusterReconciler) ReconcileNormal ¶
func (r *HarvesterClusterReconciler) ReconcileNormal(scope *ClusterScope) (res ctrl.Result, err error)
ReconcileNormal is the reconciliation function when not deleting the HarvesterCluster instance.
func (*HarvesterClusterReconciler) SetupWithManager ¶
SetupWithManager sets up the controller with the Manager.
type HarvesterMachineReconciler ¶
HarvesterMachineReconciler reconciles a HarvesterMachine object.
func (*HarvesterMachineReconciler) Reconcile ¶
func (r *HarvesterMachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, rerr error)
Reconcile reconciles the HarvesterMachine object.
func (*HarvesterMachineReconciler) ReconcileDelete ¶
func (r *HarvesterMachineReconciler) ReconcileDelete(hvScope Scope) (res ctrl.Result, rerr error)
ReconcileDelete deletes a HarvesterMachine with all its dependencies.
func (*HarvesterMachineReconciler) ReconcileNormal ¶
func (r *HarvesterMachineReconciler) ReconcileNormal(hvScope *Scope) (res reconcile.Result, rerr error)
ReconcileNormal reconciles the HarvesterMachine object.
func (*HarvesterMachineReconciler) SetupWithManager ¶
SetupWithManager sets up the controller with the Manager.
type Scope ¶
type Scope struct { Ctx context.Context Cluster *clusterv1.Cluster Machine *clusterv1.Machine HarvesterCluster *infrav1.HarvesterCluster HarvesterMachine *infrav1.HarvesterMachine HarvesterClient *harvclient.Clientset ReconcilerClient client.Client Logger *logr.Logger }
Scope stores context data for the reconciler.