events

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEvents

func CreateEvents(eventsDetails *types.EventDetails, clients clients.ClientSets, chaosDetails *types.ChaosDetails, kind, eventName string) error

CreateEvents create the events in the desired resource

func GenerateEvents

func GenerateEvents(eventsDetails *types.EventDetails, clients clients.ClientSets, chaosDetails *types.ChaosDetails, kind string) error

GenerateEvents update the events and increase the count by 1, if already present else it will create a new event

func GetChaosEngine

func GetChaosEngine(clients clients.ClientSets, ChaosNamespace string, EngineName string) (*v1alpha1.ChaosEngine, error)

GetChaosEngine returns chaosEngine Object

Types

type Recorder

type Recorder struct {
	EventRecorder record.EventRecorder
	EventResource runtime.Object
}

Recorder is collection of resources needed to record events for chaos-runner

func NewEventRecorder

func NewEventRecorder(clients clients.ClientSets, chaosDetails types.ChaosDetails) (*Recorder, error)

NewEventRecorder initializes EventRecorder with Resource as ChaosEngine

func (Recorder) ChaosInject

func (r Recorder) ChaosInject(ExperimentName string)

ChaosInject is an standard event spawned just after chaos injection

func (Recorder) PostChaosCheck

func (r Recorder) PostChaosCheck()

PostChaosCheck is an standard event spawned just after ApplicationStatusCheck

func (Recorder) PreChaosCheck

func (r Recorder) PreChaosCheck()

PreChaosCheck is an standard event spawned just after ApplicationStatusCheck

func (Recorder) Summary

func (r Recorder) Summary(ExperimentName string, resultDetails *types.ResultDetails)

Summary is an standard event spawned in the end of test

Jump to

Keyboard shortcuts

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