Help us shape the future of Go! Take the 2026 Go Developer Survey

controller

package
v0.7.13 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2018 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller is the controller implementation for machine resources

func NewMachineController

func NewMachineController(
	kubeClient kubernetes.Interface,
	machineClient machineclientset.Interface,
	nodeInformer cache.SharedIndexInformer,
	nodeLister listerscorev1.NodeLister,
	machineInformer cache.SharedIndexInformer,
	machineLister machinelistersv1alpha1.MachineLister,
	secretSystemNsLister listerscorev1.SecretLister,
	clusterDNSIPs []net.IP,
	metrics *MetricsCollection,
	prometheusRegistry prometheus.Registerer,
	kubeconfigProvider KubeconfigProvider,
	name string) *Controller

NewMachineController returns a new machine controller

func (*Controller) ReadinessChecks added in v0.0.2

func (c *Controller) ReadinessChecks() map[string]healthcheck.Check

func (*Controller) Run

func (c *Controller) Run(threadiness int, stopCh <-chan struct{}) error

Run starts the control loop

type KubeconfigProvider added in v0.1.1

type KubeconfigProvider interface {
	GetKubeconfig() (*clientcmdapi.Config, error)
}

type MachineCollector added in v0.7.11

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

func NewMachineCollector added in v0.7.11

func NewMachineCollector(lister v1alpha1.MachineLister) *MachineCollector

func (MachineCollector) Collect added in v0.7.11

func (mc MachineCollector) Collect(ch chan<- prometheus.Metric)

func (MachineCollector) Describe added in v0.7.11

func (mc MachineCollector) Describe(ch chan<- *prometheus.Desc)

type MetricsCollection added in v0.1.0

type MetricsCollection struct {
	Workers prometheus.Gauge
	Errors  prometheus.Counter
}

MetricsCollection is a struct of all metrics used in this controller.

func NewMachineControllerMetrics added in v0.7.3

func NewMachineControllerMetrics() *MetricsCollection

NewMachineControllerMetrics creates new MachineControllerMetrics with default values initialized, so metrics always show up.

Jump to

Keyboard shortcuts

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