controller

package
v3.3.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 12 Imported by: 2

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