controllers

package
v0.5.0 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: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRequeueDNS = errors.New("need to requeue DNS")

Functions

func IsControlPlaneMachine

func IsControlPlaneMachine(m *infrav1beta1.MaasMachine) bool

IsControlPlaneMachine checks machine is a control plane node.

func IsRunning

func IsRunning(m *infrav1beta1.MaasMachine) bool

IsRunning returns if the machine is running

Types

type MaasClusterReconciler

type MaasClusterReconciler struct {
	client.Client
	Log                 logr.Logger
	Scheme              *runtime.Scheme
	Recorder            record.EventRecorder
	GenericEventChannel chan event.GenericEvent
	Tracker             *remote.ClusterCacheTracker
}

MaasClusterReconciler reconciles a MaasCluster object

func (*MaasClusterReconciler) Reconcile

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

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

func (*MaasClusterReconciler) SetupWithManager

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

SetupWithManager will add watches for this controller

type MaasMachineReconciler

type MaasMachineReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
	Tracker  *remote.ClusterCacheTracker
}

MaasMachineReconciler reconciles a MaasMachine object

func (*MaasMachineReconciler) MaasClusterToMaasMachines

func (r *MaasMachineReconciler) MaasClusterToMaasMachines(o client.Object) []ctrl.Request

MaasClusterToMaasMachines is a handler.ToRequestsFunc to be used to enqeue requests for reconciliation of MaasMachines.

func (*MaasMachineReconciler) Reconcile

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

func (*MaasMachineReconciler) SetupWithManager

func (r *MaasMachineReconciler) SetupWithManager(_ context.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