operator

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operator

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

Operator for controlling CRD instances.

func New

func New(namespace string, kubeClient kubernetes.Interface, jinghzhuV1Client jinghzhuv1clientset.Interface) *Operator

New creates the CRD Operator. The parameter namespace is where this Operator will run.

func (*Operator) GetContext

func (c *Operator) GetContext() context.Context

GetContext retruns the context.

func (*Operator) HasSynced

func (c *Operator) HasSynced() bool

HasSynced is required for the cache.Controller interface.

func (*Operator) Run

func (c *Operator) Run(workerNum int) error

Run is the main entry to start CRD Operator.

Jump to

Keyboard shortcuts

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