controllers

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BareMetalClusterReconciler

type BareMetalClusterReconciler struct {
	Client         client.Client
	ManagerFactory baremetal.ManagerFactoryInterface
	Log            logr.Logger
}

BareMetalClusterReconciler reconciles a BareMetalCluster object

func (*BareMetalClusterReconciler) Reconcile

func (r *BareMetalClusterReconciler) Reconcile(req ctrl.Request) (_ ctrl.Result, rerr error)

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

func (*BareMetalClusterReconciler) SetupWithManager

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

SetupWithManager will add watches for this controller

type BareMetalMachineReconciler

type BareMetalMachineReconciler struct {
	Client           client.Client
	ManagerFactory   baremetal.ManagerFactoryInterface
	Log              logr.Logger
	CapiClientGetter baremetal.ClientGetter
}

BareMetalMachineReconciler reconciles a BareMetalMachine object

func (*BareMetalMachineReconciler) BareMetalClusterToBareMetalMachines

func (r *BareMetalMachineReconciler) BareMetalClusterToBareMetalMachines(o handler.MapObject) []ctrl.Request

BareMetalClusterToBareMetalMachines is a handler.ToRequestsFunc to be used to enqeue requests for reconciliation of BareMetalMachines.

func (*BareMetalMachineReconciler) BareMetalHostToBareMetalMachines

func (r *BareMetalMachineReconciler) BareMetalHostToBareMetalMachines(obj handler.MapObject) []ctrl.Request

BareMetalHostToBareMetalMachines will return a reconcile request for a BareMetalMachine if the event is for a BareMetalHost and that BareMetalHost references a BareMetalMachine.

func (*BareMetalMachineReconciler) Reconcile

func (r *BareMetalMachineReconciler) Reconcile(req ctrl.Request) (_ ctrl.Result, rerr error)

Reconcile handles BareMetalMachine events

func (*BareMetalMachineReconciler) SetupWithManager

func (r *BareMetalMachineReconciler) SetupWithManager(mgr ctrl.Manager) 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