operator

package
v0.0.0-...-0b72b3b Latest Latest
Warning

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

Go to latest
Published: May 22, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config, labelerCli labelerk8scli.Interface, crdCli crd.Interface, kubeCli kubernetes.Interface, logger log.Logger) (operator.Operator, error)

New returns pod terminator operator.

Types

type Config

type Config struct {
	// ResyncPeriod is the resync period of the operator.
	ResyncPeriod time.Duration
}

Config is the controller configuration.

func NewOperatorConfig

func NewOperatorConfig(t time.Duration) Config

NewOperatorConfig converts the command line flag arguments to operator configuration.

type LabelerCRD

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

LabelerCRD is the crd pod terminator.

func (*LabelerCRD) GetListerWatcher

func (p *LabelerCRD) GetListerWatcher() cache.ListerWatcher

GetListerWatcher satisfies resource.crd interface (and retrieve.Retriever).

func (*LabelerCRD) GetObject

func (p *LabelerCRD) GetObject() runtime.Object

GetObject satisfies resource.crd interface (and retrieve.Retriever).

func (*LabelerCRD) Initialize

func (p *LabelerCRD) Initialize() error

LabelerCRD satisfies resource.crd interface.

Jump to

Keyboard shortcuts

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