Help us shape the future of Go! Take the 2026 Go Developer Survey

care

package
v1.151.3 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "extension-care"

ControllerName is the name of this controller.

Variables

This section is empty.

Functions

func ConditionTypes

func ConditionTypes() []gardencorev1beta1.ConditionType

ConditionTypes returns all extension condition types.

Types

type ExtensionConditions

type ExtensionConditions struct {
	// contains filtered or unexported fields
}

ExtensionConditions contains all conditions of the extension status subresource.

func NewExtensionConditions

func NewExtensionConditions(clock clock.Clock, extension *operatorv1alpha1.Extension) ExtensionConditions

NewExtensionConditions returns a new instance of ExtensionConditions. All conditions are retrieved from the given 'status' or newly initialized.

func (ExtensionConditions) ConvertToSlice

func (e ExtensionConditions) ConvertToSlice() []gardencorev1beta1.Condition

ConvertToSlice returns the extension conditions as a slice.

type HealthCheck

type HealthCheck interface {
	Check(ctx context.Context, conditions ExtensionConditions) []gardencorev1beta1.Condition
}

HealthCheck is an interface used to perform health checks.

func NewHealth

func NewHealth(
	extension *operatorv1alpha1.Extension,
	runtimeClient client.Client,
	virtualClient client.Client,
	clock clock.Clock,
	conditionThresholds map[gardencorev1beta1.ConditionType]time.Duration,
	gardenNamespace string,
	healthChecker *healthchecker.HealthChecker,
) HealthCheck

NewHealth creates a new Health instance with the given parameters.

type Reconciler

type Reconciler struct {
	RuntimeClient   client.Client
	Config          operatorconfigv1alpha1.OperatorConfiguration
	Clock           clock.Clock
	GardenNamespace string
	VirtualClient   client.Client
}

Reconciler reconciles Extension resources and executes health check operations.

func (*Reconciler) AddToManager

func (r *Reconciler) AddToManager(mgr manager.Manager, virtualCluster cluster.Cluster) error

AddToManager adds Reconciler to the given manager.

func (*Reconciler) MapManagedResourceToExtension

func (r *Reconciler) MapManagedResourceToExtension(_ context.Context, obj client.Object) []reconcile.Request

MapManagedResourceToExtension is a handler.MapFunc for mapping a ManagedResource to the owning Extension.

func (*Reconciler) Reconcile

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

Reconcile reconciles Extension resources and executes health check operations.

Jump to

Keyboard shortcuts

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