controllerinstallation

package
v1.93.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 53 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "controllerinstallation"

ControllerName is the name of this controller.

Variables

View Source
var RequeueDurationWhenResourceDeletionStillPresent = 30 * time.Second

RequeueDurationWhenResourceDeletionStillPresent is the duration used for requeueing when owned resources are still in the process of being deleted when deleting a ControllerInstallation.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	GardenClient          client.Client
	GardenConfig          *rest.Config
	SeedClientSet         kubernetes.Interface
	Config                config.GardenletConfiguration
	Clock                 clock.Clock
	Identity              *gardencorev1beta1.Gardener
	GardenClusterIdentity string
}

Reconciler reconciles ControllerInstallations and deploys them into the seed cluster.

func (*Reconciler) AddToManager

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

AddToManager adds Reconciler to the given manager.

func (*Reconciler) ControllerInstallationPredicate

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

ControllerInstallationPredicate returns a predicate that evaluates to true in all cases except for 'Update' events. Here, it only returns true if the references change or the deletion timestamp gets set.

func (*Reconciler) HelmTypePredicate

func (r *Reconciler) HelmTypePredicate(ctx context.Context, reader client.Reader) predicate.Predicate

HelmTypePredicate is a predicate which checks whether the ControllerDeployment referenced in the ControllerInstallation has .type=helm.

func (*Reconciler) Reconcile

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

Reconcile reconciles ControllerInstallations and deploys them into the seed cluster.

Jump to

Keyboard shortcuts

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