controller

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2018 License: Apache-2.0 Imports: 20 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRDReport

type CRDReport struct {
	Deps

	Ctlr     *ContivTelemetryController
	VppCache api.VppCache
	K8sCache api.K8sCache
	Report   api.Report
}

CRDReport implements generation of reports to CRD

func (*CRDReport) GenerateCRDReport

func (cr *CRDReport) GenerateCRDReport()

GenerateCRDReport updates the CRD status in Kubernetes with the current status from the sfc-controller

type ContivTelemetryController

type ContivTelemetryController struct {
	Deps

	K8sClient *kubernetes.Clientset
	CrdClient *crdClientSet.Clientset
	APIClient *apiextcs.Clientset
	// contains filtered or unexported fields
}

ContivTelemetryController struct defines how a controller should encapsulate logging, client connectivity, informing (list and watching) queueing, and handling of resource changes

func (*ContivTelemetryController) HasSynced

func (ctc *ContivTelemetryController) HasSynced() bool

HasSynced indicates when the controller is synced up with the K8s.

func (*ContivTelemetryController) Init

func (ctc *ContivTelemetryController) Init() error

Init performs the initialization of ContivTelemetryController

func (*ContivTelemetryController) Run

func (ctc *ContivTelemetryController) Run(ctx <-chan struct{})

Run this in the plugin_crd_impl, it's the controller loop

type Deps

type Deps struct {
	Log logging.Logger
}

Deps defines dependencies for the CRD plugin

Jump to

Keyboard shortcuts

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