Documentation ¶
Index ¶
- Constants
- Variables
- func CheckChaosAnnotation(engine *chaosTypes.EngineInfo, clientset kubernetes.Interface, ...) (*chaosTypes.EngineInfo, error)
- func CheckDaemonSetAnnotation(clientset kubernetes.Interface, engine *chaosTypes.EngineInfo) (*chaosTypes.EngineInfo, error)
- func CheckDeploymentAnnotation(clientset kubernetes.Interface, engine *chaosTypes.EngineInfo) (*chaosTypes.EngineInfo, error)
- func CheckDeploymentConfigAnnotation(clientSet dynamic.Interface, engine *chaosTypes.EngineInfo) (*chaosTypes.EngineInfo, error)
- func CheckRolloutAnnotation(clientSet dynamic.Interface, engine *chaosTypes.EngineInfo) (*chaosTypes.EngineInfo, error)
- func CheckStatefulSetAnnotation(clientset kubernetes.Interface, engine *chaosTypes.EngineInfo) (*chaosTypes.EngineInfo, error)
- func GetAnnotationKey() string
- func IsChaosEnabled(annotationValue string) bool
Constants ¶
View Source
const ( ChaosAnnotationValue = "true" DefaultChaosAnnotationKey = "cnbrchaos.io/chaos" )
Annotations on app to enable chaos on it
Variables ¶
View Source
var ( // ChaosAnnotationKey is global variable used as the Key for annotation check. ChaosAnnotationKey = GetAnnotationKey() )
Functions ¶
func CheckChaosAnnotation ¶
func CheckChaosAnnotation(engine *chaosTypes.EngineInfo, clientset kubernetes.Interface, dynamicClientSet dynamic.Interface) (*chaosTypes.EngineInfo, error)
CheckChaosAnnotation will check for the annotation of required resources
func CheckDaemonSetAnnotation ¶
func CheckDaemonSetAnnotation(clientset kubernetes.Interface, engine *chaosTypes.EngineInfo) (*chaosTypes.EngineInfo, error)
CheckDaemonSetAnnotation will check the annotation of DaemonSet
func CheckDeploymentAnnotation ¶
func CheckDeploymentAnnotation(clientset kubernetes.Interface, engine *chaosTypes.EngineInfo) (*chaosTypes.EngineInfo, error)
CheckDeploymentAnnotation will check the annotation of deployment
func CheckDeploymentConfigAnnotation ¶
func CheckDeploymentConfigAnnotation(clientSet dynamic.Interface, engine *chaosTypes.EngineInfo) (*chaosTypes.EngineInfo, error)
CheckDeploymentConfigAnnotation will check the annotation of deployment
func CheckRolloutAnnotation ¶
func CheckRolloutAnnotation(clientSet dynamic.Interface, engine *chaosTypes.EngineInfo) (*chaosTypes.EngineInfo, error)
CheckRolloutAnnotation will check the annotation of argo rollout
func CheckStatefulSetAnnotation ¶
func CheckStatefulSetAnnotation(clientset kubernetes.Interface, engine *chaosTypes.EngineInfo) (*chaosTypes.EngineInfo, error)
CheckStatefulSetAnnotation will check the annotation of StatefulSet
func GetAnnotationKey ¶
func GetAnnotationKey() string
GetAnnotationKey returns the annotation to be used while validating applications.
func IsChaosEnabled ¶
IsChaosEnabled check for the given annotation value
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.