operator

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OperatorKiller

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

OperatorKiller deletes pods of tidb-operator to simulate operator failures.

func NewOperatorKiller

func NewOperatorKiller(config OperatorKillerConfig, client kubernetes.Interface, podLister func() ([]v1.Pod, error)) *OperatorKiller

NewOperatorKiller creates a new operator killer.

func (*OperatorKiller) Run

func (k *OperatorKiller) Run(stopCh <-chan struct{})

Run starts OperatorKiller until stopCh is closed.

type OperatorKillerConfig

type OperatorKillerConfig struct {
	Enabled bool
	// Interval is time between operator failures.
	Interval time.Duration
	// Operator pods will be deleted between [Interval, Interval * (1.0 + JitterFactor)].
	JitterFactor float64
}

OperatorKillerConfig describes configuration for operator killer.

Jump to

Keyboard shortcuts

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