Documentation ¶
Index ¶
- Variables
- func IsControlPlaneMachine(m *infrav1beta1.MaasMachine) bool
- func IsRunning(m *infrav1beta1.MaasMachine) bool
- type MaasClusterReconciler
- type MaasMachineReconciler
- func (r *MaasMachineReconciler) MaasClusterToMaasMachines(o client.Object) []ctrl.Request
- func (r *MaasMachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, rerr error)
- func (r *MaasMachineReconciler) SetupWithManager(_ context.Context, mgr ctrl.Manager, options controller.Options) error
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) SetupWithManager ¶
func (r *MaasMachineReconciler) SetupWithManager(_ context.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.