controllerinstallation

package
v0.32.2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 37 Imported by: 0

Documentation

Index

Constants

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

FinalizerName is the name of the ControllerInstallation finalizer.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlInterface

type ControlInterface interface {
	Reconcile(*gardencorev1alpha1.ControllerInstallation) error
}

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

func NewDefaultControllerInstallationControl

func NewDefaultControllerInstallationControl(k8sGardenClient kubernetes.Interface, k8sGardenCoreInformers gardencoreinformers.SharedInformerFactory, recorder record.EventRecorder, config *config.ControllerManagerConfiguration, seedLister gardencorelisters.SeedLister, controllerRegistrationLister gardencorelisters.ControllerRegistrationLister, controllerInstallationLister gardencorelisters.ControllerInstallationLister, gardenNamespace *corev1.Namespace) ControlInterface

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

type Controller

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

Controller controls ControllerInstallation.

func NewController

func NewController(k8sGardenClient kubernetes.Interface, gardenCoreInformerFactory gardencoreinformers.SharedInformerFactory, config *config.ControllerManagerConfiguration, recorder record.EventRecorder, gardenNamespace *corev1.Namespace) *Controller

NewController instantiates a new ControllerInstallation 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 DeployedResources

type DeployedResources struct {
	// Resources is a list of objects that have been created.
	Resources []corev1.ObjectReference `json:"resources,omitempty"`
}

DeployedResources is a providerStatus specific type for ControllerInstallation.

type HelmDeployment

type HelmDeployment struct {
	// Chart is a Helm chart tarball.
	Chart []byte `json:"chart,omitempty"`
	// Values is a map of values for the given chart.
	Values map[string]interface{} `json:"values,omitempty"`
}

HelmDeployment is a providerConfig specific type for ControllerInstallation.

Jump to

Keyboard shortcuts

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