controllers

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 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 IdlingReconciler

type IdlingReconciler struct {
	client.Client
	Log     logr.Logger
	Scheme  *runtime.Scheme
	Idler   *idler.Idler
	Unidler *unidler.Unidler
}

IdlingReconciler reconciles idling

func (*IdlingReconciler) Reconcile

func (r *IdlingReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*IdlingReconciler) SetupWithManager

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

SetupWithManager sets up the watch on the namespace resource with an event filter (see predicates.go)

type NamespacePredicates

type NamespacePredicates struct {
	predicate.Funcs
}

NamespacePredicates defines the funcs for predicates

func (NamespacePredicates) Create

Create we only watch for create events at this stage.

func (NamespacePredicates) Delete

Delete returns false if a delete event.

func (NamespacePredicates) Generic

Generic returns false if a delete event.

func (NamespacePredicates) Update

Update returns false if a delete event.

Jump to

Keyboard shortcuts

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