health

package
v1.72.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "health"

ControllerName is the name of the controller.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	SourceClient client.Client
	TargetClient client.Client
	TargetScheme *runtime.Scheme
	Config       config.HealthControllerConfig
	Clock        clock.Clock
	ClassFilter  *resourcemanagerpredicate.ClassFilter
	// contains filtered or unexported fields
}

Reconciler performs health checks for resources managed as part of ManagedResources.

func (*Reconciler) AddToManager

func (r *Reconciler) AddToManager(mgr manager.Manager, sourceCluster, targetCluster cluster.Cluster, targetCacheDisabled bool, clusterID string) error

AddToManager adds Reconciler to the given manager.

func (*Reconciler) EnqueueCreateAndUpdate

func (r *Reconciler) EnqueueCreateAndUpdate() handler.EventHandler

EnqueueCreateAndUpdate returns an event handler which only enqueues create and update events.

func (*Reconciler) Reconcile

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

Reconcile performs the health checks.

Jump to

Keyboard shortcuts

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