gardenlet

package
v1.108.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 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
	RuntimeClient         client.Client
	VirtualConfig         *rest.Config
	VirtualAPIReader      client.Reader
	VirtualClient         client.Client
	Config                config.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.

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