chaos

package
v0.0.0-...-47edf51 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2017 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 CrushConfig

type CrushConfig struct {
	// Namespace is the namespace of the pods to crush.
	Namespace string
	// Selector selects pods to crush.
	Selector labels.Selector

	// KillRate is the rate to crush pods.
	KillRate rate.Limit
	// KillProbability is the probability to crush selected pods.
	KillProbability float64
	// KillMax is the max number of selected pods to crush.
	KillMax int
}

type Monkey

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

Monkey knows how to crush pods.

func NewMonkey

func NewMonkey(kubecli kubernetes.Interface) *Monkey

NewMonkey creates a Monkey to crush pods.

func (*Monkey) CrushPods

func (m *Monkey) CrushPods(ctx context.Context, c *CrushConfig)

TODO: respect context in k8s operations.

Jump to

Keyboard shortcuts

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