care

package
v1.77.6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "garden-care"

ControllerName is the name of this controller.

Variables

View Source
var (
	// NewHealthCheck is used to create a new Health check instance.
	NewHealthCheck = defaultNewHealthCheck
)

Functions

This section is empty.

Types

type HealthCheck

type HealthCheck interface {
	CheckGarden(ctx context.Context, condition []gardencorev1beta1.Condition, thresholdMappings map[gardencorev1beta1.ConditionType]time.Duration, lastOperation *gardencorev1beta1.LastOperation) []gardencorev1beta1.Condition
}

HealthCheck is an interface used to perform health checks.

type NewHealthCheckFunc

NewHealthCheckFunc is a function used to create a new instance for performing health checks.

type Reconciler

type Reconciler struct {
	RuntimeClient   client.Client
	Config          config.OperatorConfiguration
	Clock           clock.Clock
	GardenClientMap clientmap.ClientMap
	GardenNamespace string
}

Reconciler reconciles garden resources and executes health check operations.

func (*Reconciler) AddToManager

func (r *Reconciler) AddToManager(ctx context.Context, mgr manager.Manager) error

AddToManager adds Reconciler to the given manager.

func (*Reconciler) GardenPredicate

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

GardenPredicate is a predicate which returns 'true' for create events, and for update events in case the garden was successfully reconciled.

func (*Reconciler) MapManagedResourceToGarden

func (r *Reconciler) MapManagedResourceToGarden(ctx context.Context, log logr.Logger, _ client.Reader, _ client.Object) []reconcile.Request

MapManagedResourceToGarden is a mapper.MapFunc for mapping a ManagedResource to the owning Garden.

func (*Reconciler) Reconcile

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

Reconcile reconciles Garden resources and executes health check operations.

Jump to

Keyboard shortcuts

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