controllers

package
v0.0.0-...-8a6f205 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MaintenanceLimitReconciler

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

MaintenanceLimitReconciler reconciles a MaintenanceLimit object

func (*MaintenanceLimitReconciler) Reconcile

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

Reconcile ...

func (*MaintenanceLimitReconciler) SetupWithManager

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

SetupWithManager ...

func (*MaintenanceLimitReconciler) UpdateMaintenanceLimits

func (r *MaintenanceLimitReconciler) UpdateMaintenanceLimits(ctx context.Context, log logr.Logger, ml *repairmanv1.MaintenanceLimit) error

UpdateMaintenanceLimits update maintenance limits if changed

type MaintenanceRequestReconciler

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

MaintenanceRequestReconciler reconciles a MaintenanceRequest object

func (*MaintenanceRequestReconciler) ApproveMaintenanceRequest

func (r *MaintenanceRequestReconciler) ApproveMaintenanceRequest(ctx context.Context, log logr.Logger, mr *repairmanv1.MaintenanceRequest) (ctrl.Result, error)

ApproveMaintenanceRequest check if mr is under limits, approve if under limits

func (*MaintenanceRequestReconciler) Reconcile

Reconcile reconciles maintenance request

func (*MaintenanceRequestReconciler) SetupWithManager

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

SetupWithManager ...

type MaintenanceSelectorReconciler

type MaintenanceSelectorReconciler struct {
	client.Client
	Log logr.Logger
}

MaintenanceSelectorReconciler reconciles a MaintenanceSelector object

func (*MaintenanceSelectorReconciler) Reconcile

Reconcile ...

func (*MaintenanceSelectorReconciler) SetupWithManager

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

SetupWithManager ...

type PolicyHandler

type PolicyHandler func(corev1.Node) bool

PolicyHandler returns true if

Jump to

Keyboard shortcuts

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