activity

package
v1.112.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 25 Imported by: 1

Documentation

Index

Constants

View Source
const ControllerName = "project-activity"

ControllerName is the name of this controller.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

Reconciler reconciles Projects and updates the lastActivityTimestamp in the status.

func (*Reconciler) AddToManager

func (r *Reconciler) AddToManager(mgr manager.Manager) error

AddToManager adds Reconciler to the given manager.

func (*Reconciler) MapObjectToProject

func (r *Reconciler) MapObjectToProject(log logr.Logger) handler.MapFunc

MapObjectToProject is a handler.MapFunc for mapping an object to the Project it belongs to.

func (*Reconciler) NeedsSecretOrCredentialsBindingReferenceLabelPredicate added in v1.101.0

func (r *Reconciler) NeedsSecretOrCredentialsBindingReferenceLabelPredicate() predicate.Predicate

NeedsSecretOrCredentialsBindingReferenceLabelPredicate returns a predicate which only returns true when the objects have the reference.gardener.cloud/secretbinding or reference.gardener.cloud/credentialsbinding label.

func (*Reconciler) OnlyNewlyCreatedObjects

func (r *Reconciler) OnlyNewlyCreatedObjects() predicate.Predicate

OnlyNewlyCreatedObjects filters for objects which are created less than an hour ago for create events. This can be used to prevent unnecessary reconciliations in case of controller restarts.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Reconcile reconciles Projects and updates the lastActivityTimestamp in the status.

Jump to

Keyboard shortcuts

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