Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func WithAction ¶
WithAction overrides the PodChaos Action field.
func WithSelectorMode ¶
func WithSelectorMode(mode string) func(*PodSelector)
WithSelectorMode overrides the SelectorMode for a PodSelector.
func WithSelectorNamespace ¶
func WithSelectorNamespace(namespaces []string) func(*PodSelector)
WithSelectorNamespace overrides the namespaces for a PodSelector.
Types ¶
type PodChaos ¶
type PodChaos chmv1alpha1.PodChaos
func New ¶
func New(namespace string, selector *PodSelector, opts ...func(*PodChaos)) PodChaos
New returns a PodChaos object configured with a selector and provided options.
func (PodChaos) CheckChaosActive ¶
CheckChaosActive checks if a PodChaos object indicates a successful injection of Chaos action.
func (PodChaos) KubernetesObject ¶
GetObject returns the actual PodChaos object
type PodSelector ¶
type PodSelector = chmv1alpha1.PodSelector
func NewPodLabelSelector ¶
func NewPodLabelSelector(labels map[string]string, opts ...func(*PodSelector), ) *PodSelector
NewPodLabelSelector returns a new PodSelector configured using labels and provided options.
Click to show internal directories.
Click to hide internal directories.