podnetworkchaos

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bootstrap

func Bootstrap(mgr ctrl.Manager, client client.Client, logger logr.Logger, b *chaosdaemon.ChaosDaemonClientBuilder, recorderBuilder *recorder.RecorderBuilder) error

Types

type NetemSpec

type NetemSpec interface {
	ToNetem() (*pb.Netem, error)
}

NetemSpec defines the interface to convert to a Netem protobuf

type Reconciler

type Reconciler struct {
	client.Client
	Recorder recorder.ChaosRecorder

	Log                      logr.Logger
	AllowHostNetworkTesting  bool
	ChaosDaemonClientBuilder *chaosdaemon.ChaosDaemonClientBuilder
}

Reconciler applys podnetworkchaos

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*Reconciler) SetIPSets

SetIPSets sets ipset on pod

func (*Reconciler) SetIptables

func (r *Reconciler) SetIptables(ctx context.Context, pod *corev1.Pod, chaos *v1alpha1.PodNetworkChaos, chaosdaemonClient chaosdaemonclient.ChaosDaemonClientInterface) error

SetIptables sets iptables on pod

func (*Reconciler) SetTcs

SetTcs sets traffic control related chaos on pod

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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