operator

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ClusterName           string
	ConfigSourceNamespace string
	KubeConfigFile        string

	ResyncPeriod time.Duration
	Test         bool
}

type Operator

type Operator struct {
	Config

	ClientConfig *rest.Config

	KubeClient kubernetes.Interface
	// contains filtered or unexported fields
}

func (*Operator) Configure

func (op *Operator) Configure() error

func (*Operator) Run

func (op *Operator) Run(stopCh <-chan struct{})

type OperatorConfig

type OperatorConfig struct {
	Config

	ClientConfig *rest.Config
	KubeClient   kubernetes.Interface
}

func NewOperatorConfig

func NewOperatorConfig(clientConfig *rest.Config) *OperatorConfig

func (*OperatorConfig) New

func (c *OperatorConfig) New() (*Operator, error)

Jump to

Keyboard shortcuts

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