result

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnnotateChaosResult

func AnnotateChaosResult(resultName, namespace, status, kind, name string) error

AnnotateChaosResult annotate the chaosResult for the chaos status using kubectl cli to annotate the chaosresult as it will automatically handle the race condition in case of multiple helpers

func ChaosResult

func ChaosResult(chaosDetails *types.ChaosDetails, clients clients.ClientSets, resultDetails *types.ResultDetails, state string) error

ChaosResult Create and Update the chaos result

func GetChaosStatus

func GetChaosStatus(resultDetails *types.ResultDetails, chaosDetails *types.ChaosDetails, clients clients.ClientSets) (map[string]string, error)

GetChaosStatus get the chaos status based on annotations in chaosresult

func GetProbeStatus

func GetProbeStatus(resultDetails *types.ResultDetails) (bool, []v1alpha1.ProbeStatus)

GetProbeStatus fetch status of all probes

func InitializeChaosResult

func InitializeChaosResult(chaosDetails *types.ChaosDetails, clients clients.ClientSets, resultDetails *types.ResultDetails, chaosResultLabel map[string]string) error

InitializeChaosResult create the chaos result

func PatchChaosResult

func PatchChaosResult(result *v1alpha1.ChaosResult, clients clients.ClientSets, chaosDetails *types.ChaosDetails, resultDetails *types.ResultDetails, chaosResultLabel map[string]string) error

PatchChaosResult Update the chaos result

func RecordAfterFailure

func RecordAfterFailure(chaosDetails *types.ChaosDetails, resultDetails *types.ResultDetails, failStep string, clients clients.ClientSets, eventsDetails *types.EventDetails)

RecordAfterFailure update the chaosresult and create the summary events

func SetResultUID

func SetResultUID(resultDetails *types.ResultDetails, clients clients.ClientSets, chaosDetails *types.ChaosDetails) error

SetResultUID sets the ResultUID into the ResultDetails structure

Types

This section is empty.

Jump to

Keyboard shortcuts

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