Documentation ¶
Index ¶
- func AnnotateChaosResult(resultName, namespace, status, kind, name string) error
- func ChaosResult(chaosDetails *types.ChaosDetails, clients clients.ClientSets, ...) error
- func GetChaosStatus(resultDetails *types.ResultDetails, chaosDetails *types.ChaosDetails, ...) (map[string]string, error)
- func GetProbeStatus(resultDetails *types.ResultDetails) (bool, []v1alpha1.ProbeStatus)
- func InitializeChaosResult(chaosDetails *types.ChaosDetails, clients clients.ClientSets, ...) error
- func PatchChaosResult(result *v1alpha1.ChaosResult, clients clients.ClientSets, ...) error
- func RecordAfterFailure(chaosDetails *types.ChaosDetails, resultDetails *types.ResultDetails, ...)
- func SetResultUID(resultDetails *types.ResultDetails, clients clients.ClientSets, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnnotateChaosResult ¶
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.
Click to show internal directories.
Click to hide internal directories.