Documentation
¶
Index ¶
- func CreateEvents(eventsDetails *types.EventDetails, clients clients.ClientSets, ...) error
- func GenerateEvents(eventsDetails *types.EventDetails, clients clients.ClientSets, ...) error
- func GetChaosEngine(clients clients.ClientSets, ChaosNamespace string, EngineName string) (*v1alpha1.ChaosEngine, error)
- type Recorder
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 ¶
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
Click to show internal directories.
Click to hide internal directories.