kubecontroller

package module
v0.0.0-...-5752d70 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2018 License: Apache-2.0 Imports: 13 Imported by: 2

README

kubecontroller

Provides a convenience method for creating Kubernetes resource controllers

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLockingSyncHandler deprecated

func NewLockingSyncHandler(f func()) cache.ResourceEventHandler

Deprecated: moved into solo-kit returns a handler that runs f() every time an update occurs, regardless of which type of update ensures only one f() can run at a time

func NewSyncHandler deprecated

func NewSyncHandler(f func()) cache.ResourceEventHandler

Deprecated: moved into solo-kit returns a handler that runs f() every time an update occurs, regardless of which type of update

Types

type Controller

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

func NewController deprecated

func NewController(
	controllerName string,
	kubeclient kubernetes.Interface,
	handler cache.ResourceEventHandler,
	informers ...cache.SharedInformer) *Controller

Deprecated: moved into solo-kit NewController returns a new controller

func (*Controller) Run

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

Run will set up the event handlers for types we are interested in, as well as syncing informer caches and starting workers. It will block until stopCh is closed, at which point it will shutdown the workqueue and wait for workers to finish processing their current work items.

Jump to

Keyboard shortcuts

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