watch

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupWatcherWithReconciler

func SetupWatcherWithReconciler(mgr ctrl.Manager, options controller.Options, r Controller) (err error)

Types

type Controller

type Controller interface {
	// Reconciler performs a full reconciliation for the object referred to by the Request.
	// The Controller will requeue the Request to be processed again if an error is non-nil or
	// Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
	Reconcile(context context.Context, req ctrl.Request) (ctrl.Result, error)

	// ControllerName gets the name of controller
	ControllerName() string

	// ManagedResource which is handled by controller
	ManagedResource() client.Object
}

This controller will be moved to RuntimeReconcilerInterface later

type FakeRuntimeReconciler

type FakeRuntimeReconciler struct {
}

func (*FakeRuntimeReconciler) ControllerName

func (r *FakeRuntimeReconciler) ControllerName() string

ControllerName gets the name of controller

func (*FakeRuntimeReconciler) ManagedResource

func (r *FakeRuntimeReconciler) ManagedResource() (c client.Object)

ManagedResource which is handled by controller

func (*FakeRuntimeReconciler) Reconcile

func (r *FakeRuntimeReconciler) Reconcile(context context.Context, req ctrl.Request) (result ctrl.Result, err error)

Reconciler performs a full reconciliation for the object referred to by the Request. The Controller will requeue the Request to be processed again if an error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.

Jump to

Keyboard shortcuts

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