controller

package
v3.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: Apache-2.0 Imports: 12 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrdController

type CrdController struct {
	Deps
	Spec CrdSpec
	// contains filtered or unexported fields
}

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

func (*CrdController) HasSynced

func (c *CrdController) HasSynced() bool

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

func (*CrdController) Init

func (c *CrdController) Init() error

Init performs the initialization of the Controller

func (*CrdController) Run

func (c *CrdController) Run(ctx <-chan struct{})

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

type CrdSpec

type CrdSpec struct {
	TypeName   string
	Group      string
	Version    string
	Plural     string
	Validation *apiextv1beta1.CustomResourceValidation
}

CrdSpec contains specification of the resource to control.

type Deps

type Deps struct {
	Log          logging.Logger
	APIClient    *apiextcs.Clientset
	EventHandler handler.Handler
	Informer     k8sCache.SharedIndexInformer
}

Deps defines dependencies for the CRD plugin

type Event

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

Event indicate the informerEvent

Jump to

Keyboard shortcuts

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