controller

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NamePrefix             = "candice"
	PartOf                 = "Candice"
	ManagedBy              = "Candice"
	OperatorImageReference = "tliron/candice-operator"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Config      *restpkg.Config
	Dynamic     *kubernetesutil.Dynamic
	Kubernetes  kubernetes.Interface
	Candice     candiceclientset.Interface
	Client      *client.Client
	CachePath   string
	StopChannel <-chan struct{}

	Processors *kubernetesutil.Processors
	Events     record.EventRecorder

	KubernetesInformerFactory informers.SharedInformerFactory
	CandiceInformerFactory    candiceinformers.SharedInformerFactory

	Devices candicelisters.DeviceLister

	Context contextpkg.Context
	Log     *logging.Logger
}

func NewController

func NewController(context contextpkg.Context, toolName string, clusterMode bool, clusterRole string, namespace string, dynamic dynamicpkg.Interface, kubernetes kubernetes.Interface, apiExtensions apiextensionspkg.Interface, candice candiceclientset.Interface, config *restpkg.Config, informerResyncPeriod time.Duration, stopChannel <-chan struct{}) *Controller

func (*Controller) Run

func (self *Controller) Run(concurrency uint, startup func()) error

func (*Controller) UpdateDeviceLastError

func (self *Controller) UpdateDeviceLastError(device *resources.Device, lastError string) (*resources.Device, error)

Jump to

Keyboard shortcuts

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