care

package
v1.78.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ControllerName = "seed-care"

ControllerName is the name of this controller.

Variables

View Source
var (
	// NewSeed is used to create a new `operation.Operation` instance.
	NewSeed = defaultNewSeedObjectFunc
	// NewHealthCheck is used to create a new Health check instance.
	NewHealthCheck = defaultNewHealthCheck
)

Functions

This section is empty.

Types

type HealthCheck

type HealthCheck interface {
	CheckSeed(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

type NewHealthCheckFunc func(*gardencorev1beta1.Seed, client.Client, clock.Clock, *string, bool, bool) HealthCheck

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

type Reconciler

type Reconciler struct {
	GardenClient   client.Client
	SeedClient     client.Client
	Config         config.SeedCareControllerConfiguration
	Clock          clock.Clock
	Namespace      *string
	SeedName       string
	LoggingEnabled bool
}

Reconciler reconciles Seed resources and executes health check operations.

func (*Reconciler) AddToManager

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

AddToManager adds Reconciler to the given manager.

func (*Reconciler) IsSystemComponent

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

IsSystemComponent returns a predicate which evaluates to true in case the gardener.cloud/role=system-component label is present.

func (*Reconciler) MapManagedResourceToSeed

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

MapManagedResourceToSeed is a mapper.MapFunc for mapping a ManagedResource to the owning Seed.

func (*Reconciler) Reconcile

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

Reconcile reconciles Seed resources and executes health check operations.

func (*Reconciler) SeedPredicate

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

SeedPredicate is a predicate which returns 'true' for create events, and for update events in case the seed was successfully bootstrapped.

Jump to

Keyboard shortcuts

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