controllerregistration

package
v0.0.0-...-be4dc66 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 31 Imported by: 0

Documentation

Index

Constants

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

FinalizerName is the name of the ControllerRegistration finalizer.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlInterface

type ControlInterface interface {
	Reconcile(*gardencorev1alpha1.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(k8sGardenClient kubernetes.Interface, k8sGardenInformers gardeninformers.SharedInformerFactory, k8sGardenCoreInformers gardencoreinformers.SharedInformerFactory, recorder record.EventRecorder, config *config.ControllerManagerConfiguration, seedLister gardenlisters.SeedLister, controllerRegistrationLister gardencorelisters.ControllerRegistrationLister, controllerInstallationLister gardencorelisters.ControllerInstallationLister) ControlInterface

NewDefaultControllerRegistrationControl returns a new instance of the default implementation ControlInterface that implements the documented semantics for ControllerRegistrations. updater is the UpdaterInterface used to update the status of 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(k8sGardenClient kubernetes.Interface, gardenInformerFactory gardeninformers.SharedInformerFactory, gardenCoreInformerFactory gardencoreinformers.SharedInformerFactory, config *config.ControllerManagerConfiguration, recorder record.EventRecorder) *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 SeedControlInterface

type SeedControlInterface interface {
	Reconcile(*gardenv1beta1.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(k8sGardenClient kubernetes.Interface, k8sGardenInformers gardeninformers.SharedInformerFactory, k8sGardenCoreInformers gardencoreinformers.SharedInformerFactory, recorder record.EventRecorder, config *config.ControllerManagerConfiguration, controllerRegistrationLister gardencorelisters.ControllerRegistrationLister, controllerInstallationLister gardencorelisters.ControllerInstallationLister, controllerRegistrationQueue workqueue.RateLimitingInterface) SeedControlInterface

NewDefaultSeedControl returns a new instance of the default implementation ControlInterface that implements the documented semantics for Seeds. updater is the UpdaterInterface used to update the status of 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