Documentation ¶
Index ¶
Constants ¶
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, k8sGardenCoreInformers gardencoreinformers.SharedInformerFactory, recorder record.EventRecorder, config *config.ControllerManagerConfiguration, seedLister gardencorelisters.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. 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, 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(*gardencorev1alpha1.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, 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. You should use an instance returned from NewDefaultSeedControl() for any scenario other than testing.