progressing

package
v1.91.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "health-progressing"

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
	Config       config.HealthControllerConfig
	Clock        clock.Clock
	ClassFilter  *resourcemanagerpredicate.ClassFilter
}

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

func (*Reconciler) AddToManager

func (r *Reconciler) AddToManager(ctx context.Context, mgr manager.Manager, sourceCluster, targetCluster cluster.Cluster, clusterID string) error

AddToManager adds Reconciler to the given manager.

func (*Reconciler) MapPodToDeploymentToOriginManagedResource added in v1.80.0

func (r *Reconciler) MapPodToDeploymentToOriginManagedResource(clusterID string) mapper.MapFunc

MapPodToDeploymentToOriginManagedResource is a mapper.MapFunc for pods to their origin Deployment and origin ManagedResource.

func (*Reconciler) ProgressingStatusChanged

func (r *Reconciler) ProgressingStatusChanged(ctx context.Context) predicate.Predicate

ProgressingStatusChanged returns a predicate that filters for events that indicate a change in the object's progressing status.

func (*Reconciler) Reconcile

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

Reconcile performs the progressing checks.

Jump to

Keyboard shortcuts

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