chaos

package
v0.0.0-...-e07045a Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: BSD-3-Clause, 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 CrashConfig

type CrashConfig struct {
	Namespace string
	Selector  labels.Selector

	KillRate        rate.Limit
	KillProbability float64
	KillMax         int
}

type Monkeys

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

Monkeys knows how to crush pods and nodes.

func NewMonkeys

func NewMonkeys(kubecli corev1client.CoreV1Interface) *Monkeys

func (*Monkeys) CrushPods

func (m *Monkeys) CrushPods(ctx context.Context, c *CrashConfig)

TODO: respect context in k8s operations.

Jump to

Keyboard shortcuts

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