resource

package
v0.0.0-...-ce1bbda Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChaosAnnotationKey   = "litmuschaos.io/chaos"
	ChaosAnnotationValue = "true"
)

Annotations on app to enable chaos on it

Variables

This section is empty.

Functions

func CheckChaosAnnotation

func CheckChaosAnnotation(ce *chaosTypes.EngineInfo) (*chaosTypes.EngineInfo, error)

CheckChaosAnnotation will check for the annotation of required resources

func CheckDaemonSetAnnotation

func CheckDaemonSetAnnotation(clientSet *kubernetes.Clientset, ce *chaosTypes.EngineInfo) (*chaosTypes.EngineInfo, error)

CheckDaemonSetAnnotation will check the annotation of DaemonSet

func CheckDeploymentAnnotation

func CheckDeploymentAnnotation(clientSet *kubernetes.Clientset, ce *chaosTypes.EngineInfo) (*chaosTypes.EngineInfo, error)

CheckDeploymentAnnotation will check the annotation of deployment

func CheckStatefulSetAnnotation

func CheckStatefulSetAnnotation(clientSet *kubernetes.Clientset, ce *chaosTypes.EngineInfo) (*chaosTypes.EngineInfo, error)

CheckStatefulSetAnnotation will check the annotation of StatefulSet

func CountTotalChaosEnabled

func CountTotalChaosEnabled(annotationValue string, chaosCandidates int) int

CountTotalChaosEnabled will count the number of chaos enabled applications

func ValidateTotalChaosEnabled

func ValidateTotalChaosEnabled(chaosCandidates int) error

ValidateTotalChaosEnabled will validate the total chaos count

Types

This section is empty.

Jump to

Keyboard shortcuts

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