controller

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2018 License: Apache-2.0 Imports: 39 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 Foo resources

func NewMachineController

func NewMachineController(
	kubeClient kubernetes.Interface,
	machineClient machineclientset.Interface,
	nodeInformer corev1informers.NodeInformer,
	configMapInformer corev1informers.ConfigMapInformer,
	machineInformer v1alpha1.MachineInformer,
	sshKeypair *ssh.PrivateKey,
	clusterDNSIPs []net.IP,
	metrics MetricsCollection) *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 MetricsCollection added in v0.1.0

type MetricsCollection struct {
	Machines            metrics.Gauge
	Nodes               metrics.Gauge
	Workers             metrics.Gauge
	Errors              metrics.Counter
	ControllerOperation metrics.Histogram
	NodeJoinDuration    metrics.Histogram
}

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

Jump to

Keyboard shortcuts

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