xrootdcontroller

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: LGPL-2.1 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName string = constant.ControllerName

ControllerName is the name of xrootd controller

Variables

This section is empty.

Functions

This section is empty.

Types

type XrootdClusterReconciler

type XrootdClusterReconciler struct {
	Log logr.Logger
	reconciler.BaseReconciler
	*reconciler.WatchManager
}

XrootdClusterReconciler reconciles a XrootdCluster object

func (*XrootdClusterReconciler) AddXrootdLogger

func (r *XrootdClusterReconciler) AddXrootdLogger()

AddXrootdLogger adds the Logs Watchers for Xrootd Redirector and Worker components

func (*XrootdClusterReconciler) GetOwnedResourceKinds

func (r *XrootdClusterReconciler) GetOwnedResourceKinds(instance runtime.Object) []runtime.Object

GetOwnedResourceKinds implements SyncReconciler and returns the list of kinds of managed objects

func (*XrootdClusterReconciler) IsValid

func (r *XrootdClusterReconciler) IsValid(instance controllerutil.Object) (result bool, err error)

IsValid determines if a Xrootd instance is valid and initializes empty fields.

func (*XrootdClusterReconciler) ManageError added in v0.2.1

func (r *XrootdClusterReconciler) ManageError(instance controllerutil.Object, err error, log logr.Logger) (reconcile.Result, error)

ManageError handles any error during reconciliation and updates CR status phase and condition

func (*XrootdClusterReconciler) Reconcile

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

Reconcile executes the reconciliation logic on trigger of watched events

func (*XrootdClusterReconciler) RefreshWatch

func (r *XrootdClusterReconciler) RefreshWatch(request reconcile.Request) error

RefreshWatch implements WatchReconciler and runs RefreshWatch on the watch manager

func (*XrootdClusterReconciler) SetupWithManager

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

SetupWithManager assigns controller manager and watches

func (*XrootdClusterReconciler) SyncResources

func (r *XrootdClusterReconciler) SyncResources(instance controllerutil.Object) error

SyncResources implements SyncReconciler and executes the logic to sync cluster-managed resources

func (*XrootdClusterReconciler) UpdateStatus

func (r *XrootdClusterReconciler) UpdateStatus(instance controllerutil.Object) error

UpdateStatus implements StatusReconciler and runs after sync reconciler is done

Jump to

Keyboard shortcuts

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