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.
Click to show internal directories.
Click to hide internal directories.