gardenlet

package
v1.121.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2025 License: Apache-2.0 Imports: 33 Imported by: 1

Documentation

Index

Constants

View Source
const ControllerName = "gardenlet"

ControllerName is the name of this controller.

Variables

View Source
var RequeueDurationSeedIsNotYetRegistered = 30 * time.Second

RequeueDurationSeedIsNotYetRegistered is the duration after which the Seed registration is checked when gardenlet was just deployed. Exposed for testing.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	RuntimeCluster        cluster.Cluster
	VirtualConfig         *rest.Config
	VirtualClient         client.Client
	Config                operatorconfigv1alpha1.GardenletDeployerControllerConfig
	Clock                 clock.Clock
	Recorder              record.EventRecorder
	HelmRegistry          oci.Interface
	GardenNamespaceTarget string
}

Reconciler reconciles the Gardenlet.

func (*Reconciler) AddToManager

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

AddToManager adds Reconciler to the given manager.

func (*Reconciler) OperatorResponsiblePredicate

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

OperatorResponsiblePredicate is a predicate for checking whether the Seed object has already been created for the Gardenlet resource, and whether the kubeconfig secret ref has been removed. It also returns 'true' if the 'force-redeploy' operation annotation is set, even though the Seed object already exists.

func (*Reconciler) Reconcile

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

Reconcile performs the main reconciliation logic.

Jump to

Keyboard shortcuts

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