controllers

package
v0.0.0-...-605b549 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DrainSafeReconciler

type DrainSafeReconciler struct {
	client.Client
	Log      logr.Logger
	Recorder record.EventRecorder
}

DrainSafeReconciler reconciles a DrainSafe object

func (*DrainSafeReconciler) ProcessNodeEvent

func (r *DrainSafeReconciler) ProcessNodeEvent(c kubectl.Client, rclient *repairmanclient.Client, node *corev1.Node) (ctrl.Result, error)

ProcessNodeEvent processes node event

func (*DrainSafeReconciler) Reconcile

func (r *DrainSafeReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile consumes event

func (*DrainSafeReconciler) SetupWithManager

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

SetupWithManager called from maanger to register reconciler

type ScheduledEventReconciler

type ScheduledEventReconciler struct {
	client.Client
	Log            logr.Logger
	Recorder       record.EventRecorder
	StopCh         <-chan struct{}
	AzClient       *azure.Client
	Hostname       string
	VMInstanceName string
}

ScheduledEventReconciler reconciles a DrainSafe object

func (*ScheduledEventReconciler) ProcessNodeEvent

func (r *ScheduledEventReconciler) ProcessNodeEvent(node *corev1.Node) (ctrl.Result, error)

ProcessNodeEvent processes node event

func (*ScheduledEventReconciler) ProcessScheduledEvent

func (r *ScheduledEventReconciler) ProcessScheduledEvent() error

ProcessScheduledEvent process scheduled event.

func (*ScheduledEventReconciler) Reconcile

func (r *ScheduledEventReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile consumes event

func (*ScheduledEventReconciler) SetupWithManager

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

SetupWithManager called from manager to register reconciler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL