controller

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 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 Agent

type Agent struct {
	*common.Configuration
	// contains filtered or unexported fields
}

Agent is the primary "node agent" for open-local that runs on each node

func NewAgent

func NewAgent(
	config *common.Configuration,
	kubeclientset kubernetes.Interface,
	localclientset clientset.Interface,
	snapclientset snapshot.Interface,
	localInformerFactory localinformerfactory.SharedInformerFactory,
	eventRecorder record.EventRecorder) *Agent

NewAgent returns a new open-local agent

func (*Agent) Run

func (c *Agent) Run(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