resource

package
v0.0.0-...-d9d739c Latest Latest
Warning

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

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

Documentation

Index

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

func IsChaosEnabled(annotationValue string) bool

IsChaosEnabled check for the given annotation value

Types

This section is empty.

Jump to

Keyboard shortcuts

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