controller

package
v0.0.0-...-2f837b7 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: Apache-2.0 Imports: 19 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 able to reconcile local services against services exposed by remote APIs.

func New

func New(client kubernetes.Interface, factory informers.SharedInformerFactory, clients []*NamedClient, namespace, selector string, logger log.Logger) *Controller

New creates a new Controller.

func (*Controller) RegisterMetrics

func (c *Controller) RegisterMetrics(r prometheus.Registerer)

RegisterMetrics registers the controller's metrics with the given registerer.

func (*Controller) Run

func (c *Controller) Run(stop <-chan struct{}) error

Run the controller.

type NamedClient

type NamedClient struct {
	Client kubernetes.Interface
	Name   string
}

NamedClient is a Kubernetes client with an associated string.

Jump to

Keyboard shortcuts

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