Documentation ¶
Index ¶
- Constants
- type Reconciler
- func (r *Reconciler) AddToManager(mgr manager.Manager) error
- func (r *Reconciler) MapObjectToProject(ctx context.Context, log logr.Logger, reader client.Reader, obj client.Object) []reconcile.Request
- func (r *Reconciler) NeedsSecretBindingReferenceLabelPredicate() predicate.Predicate
- func (r *Reconciler) OnlyNewlyCreatedObjects() predicate.Predicate
- func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
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 ¶
type Reconciler struct { Client client.Client Config config.ProjectControllerConfiguration Clock clock.Clock }
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(ctx context.Context, log logr.Logger, reader client.Reader, obj client.Object) []reconcile.Request
MapObjectToProject is a mapper.MapFunc for mapping an object to the Project it belongs to.
func (*Reconciler) NeedsSecretBindingReferenceLabelPredicate ¶
func (r *Reconciler) NeedsSecretBindingReferenceLabelPredicate() predicate.Predicate
NeedsSecretBindingReferenceLabelPredicate returns a predicate which only returns true when the objects have the reference.gardener.cloud/secretbinding 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.
Click to show internal directories.
Click to hide internal directories.