podnetworkchaos

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	client.Client
	client.Reader
	Log                     logr.Logger
	AllowHostNetworkTesting bool
}

Handler applys podnetworkchaos

func (*Handler) Apply

func (h *Handler) Apply(ctx context.Context, chaos *v1alpha1.PodNetworkChaos) error

Apply flushes network configuration on pod

func (*Handler) SetIPSets

func (h *Handler) SetIPSets(ctx context.Context, pod *corev1.Pod, chaos *v1alpha1.PodNetworkChaos) error

SetIPSets sets ipset on pod

func (*Handler) SetIptables

func (h *Handler) SetIptables(ctx context.Context, pod *corev1.Pod, chaos *v1alpha1.PodNetworkChaos) error

SetIptables sets iptables on pod

func (*Handler) SetTcs

func (h *Handler) SetTcs(ctx context.Context, pod *corev1.Pod, chaos *v1alpha1.PodNetworkChaos) error

SetTcs sets traffic control related chaos on pod

type NetemSpec

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

NetemSpec defines the interface to convert to a Netem protobuf

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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