lib

package
v0.0.0-...-3568c51 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AllIPs cidr contains all ips
	AllIPs string = "0.0.0.0/0"
)

Variables

This section is empty.

Functions

func PrepareAndInjectChaos

func PrepareAndInjectChaos(experimentsDetails *experimentTypes.ExperimentDetails, clients clients.ClientSets, resultDetails *types.ResultDetails, eventsDetails *types.EventDetails, chaosDetails *types.ChaosDetails) error

PrepareAndInjectChaos contains the prepration & injection steps

Types

type NetworkPolicy

type NetworkPolicy struct {
	TargetPodLabels   map[string]string
	PolicyType        []networkv1.PolicyType
	Egress            []networkv1.NetworkPolicyEgressRule
	Ingress           []networkv1.NetworkPolicyIngressRule
	ExceptIPs         []string
	NamespaceSelector map[string]string
	PodSelector       map[string]string
	Ports             []networkv1.NetworkPolicyPort
}

NetworkPolicy contains details about the network-policy

type Port

type Port struct {
	TCP  []int32 `json:"tcp"`
	UDP  []int32 `json:"udp"`
	SCTP []int32 `json:"sctp"`
}

Port contains the port details

Jump to

Keyboard shortcuts

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