Documentation ¶
Index ¶
- Constants
- type XrootdClusterReconciler
- func (r *XrootdClusterReconciler) AddXrootdLogger()
- func (r *XrootdClusterReconciler) GetOwnedResourceKinds(instance runtime.Object) []runtime.Object
- func (r *XrootdClusterReconciler) IsValid(instance controllerutil.Object) (result bool, err error)
- func (r *XrootdClusterReconciler) ManageError(instance controllerutil.Object, err error, log logr.Logger) (reconcile.Result, error)
- func (r *XrootdClusterReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)
- func (r *XrootdClusterReconciler) RefreshWatch(request reconcile.Request) error
- func (r *XrootdClusterReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *XrootdClusterReconciler) SyncResources(instance controllerutil.Object) error
- func (r *XrootdClusterReconciler) UpdateStatus(instance controllerutil.Object) error
Constants ¶
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 ¶
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