Documentation ¶
Index ¶
- Constants
- func CheckChaosAnnotation(ce *chaosTypes.EngineInfo) (*chaosTypes.EngineInfo, error)
- func CheckDaemonSetAnnotation(clientSet *kubernetes.Clientset, ce *chaosTypes.EngineInfo) (*chaosTypes.EngineInfo, error)
- func CheckDeploymentAnnotation(clientSet *kubernetes.Clientset, ce *chaosTypes.EngineInfo) (*chaosTypes.EngineInfo, error)
- func CheckStatefulSetAnnotation(clientSet *kubernetes.Clientset, ce *chaosTypes.EngineInfo) (*chaosTypes.EngineInfo, error)
- func CountTotalChaosEnabled(annotationValue string, chaosCandidates int) int
- func ValidateTotalChaosEnabled(chaosCandidates int) error
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 ¶
CountTotalChaosEnabled will count the number of chaos enabled applications
func ValidateTotalChaosEnabled ¶
ValidateTotalChaosEnabled will validate the total chaos count
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.