controllerregistration

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 36 Imported by: 2

Documentation

Index

Constants

View Source
const FinalizerName = "core.gardener.cloud/controllerregistration"

FinalizerName is the finalizer used by this controller.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlInterface

type ControlInterface interface {
	Reconcile(*gardencorev1beta1.ControllerRegistration) error
}

ControlInterface implements the control logic for updating ControllerRegistrations. It is implemented as an interface to allow for extensions that provide different semantics. Currently, there is only one implementation.

func NewDefaultControllerRegistrationControl

func NewDefaultControllerRegistrationControl(clientMap clientmap.ClientMap, controllerInstallationLister gardencorelisters.ControllerInstallationLister) ControlInterface

NewDefaultControllerRegistrationControl returns a new instance of the default implementation ControlInterface that implements the documented semantics for ControllerRegistrations. You should use an instance returned from NewDefaultControllerRegistrationControl() for any scenario other than testing.

type Controller

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

Controller controls ControllerRegistration.

func NewController

func NewController(
	clientMap clientmap.ClientMap,
	gardenCoreInformerFactory gardencoreinformers.SharedInformerFactory,
	secrets map[string]*corev1.Secret,
) *Controller

NewController instantiates a new ControllerRegistration controller.

func (*Controller) CollectMetrics

func (c *Controller) CollectMetrics(ch chan<- prometheus.Metric)

CollectMetrics implements gardenmetrics.ControllerMetricsCollector interface

func (*Controller) Run

func (c *Controller) Run(ctx context.Context, workers int)

Run runs the Controller until the given stop channel can be read from.

func (*Controller) RunningWorkers

func (c *Controller) RunningWorkers() int

RunningWorkers returns the number of running workers.

type RegistrationSeedControlInterface added in v1.2.0

type RegistrationSeedControlInterface interface {
	Reconcile(*gardencorev1beta1.Seed) error
}

RegistrationSeedControlInterface implements the control logic for updating Seeds. It is implemented as an interface to allow for extensions that provide different semantics. Currently, there is only one implementation.

func NewDefaultControllerRegistrationSeedControl added in v1.2.0

func NewDefaultControllerRegistrationSeedControl(
	clientMap clientmap.ClientMap,
	secrets map[string]*corev1.Secret,
	backupBucketLister gardencorelisters.BackupBucketLister,
	controllerInstallationLister gardencorelisters.ControllerInstallationLister,
	controllerRegistrationLister gardencorelisters.ControllerRegistrationLister,
	seedLister gardencorelisters.SeedLister,
) RegistrationSeedControlInterface

NewDefaultControllerRegistrationSeedControl returns a new instance of the default implementation ControlInterface that implements the documented semantics for Seeds. You should use an instance returned from NewDefaultControllerRegistrationSeedControl() for any scenario other than testing.

type SeedControlInterface

type SeedControlInterface interface {
	Reconcile(*gardencorev1beta1.Seed) error
}

SeedControlInterface implements the control logic for updating Seeds. It is implemented as an interface to allow for extensions that provide different semantics. Currently, there is only one implementation.

func NewDefaultSeedControl

func NewDefaultSeedControl(clientMap clientmap.ClientMap, controllerInstallationLister gardencorelisters.ControllerInstallationLister) SeedControlInterface

NewDefaultSeedControl returns a new instance of the default implementation ControlInterface that implements the documented semantics for Seeds. You should use an instance returned from NewDefaultSeedControl() for any scenario other than testing.

Jump to

Keyboard shortcuts

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