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.
Click to show internal directories.
Click to hide internal directories.