operator

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: MIT Imports: 19 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(ctx context.Context, nsOp, nsCRD, nsPod string, kubeClient kubernetes.Interface, jinghzhuV1Client jinghzhuv1clientset.Interface) *Operator

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

func (*Operator) GetCRDNamespace added in v0.2.0

func (c *Operator) GetCRDNamespace() string

GetCRDNamespace returns the namespace where Operator watchs the CRs.

func (*Operator) GetContext

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

GetContext retruns the context.

func (*Operator) GetPodNamespace added in v0.2.0

func (c *Operator) GetPodNamespace() string

GetPodNamespace returns the namespace where Operator process the worker Pods.

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