Skip to content

CRD Schema Reference

Auto-generated from api/v1alpha1/types.go.

ChaosExperiment

ChaosExperiment defines a chaos engineering experiment.

Field Type JSON Description
Spec ChaosExperimentSpec spec
Status ChaosExperimentStatus status

ChaosExperimentList

ChaosExperimentList contains a list of ChaosExperiment.

Field Type JSON Description
Items []ChaosExperiment items

ChaosExperimentSpec

Field Type JSON Description
Target TargetSpec target
SteadyState SteadyStateSpec steadyState
Injection InjectionSpec injection
BlastRadius BlastRadiusSpec blastRadius
Hypothesis HypothesisSpec hypothesis
Tier int32 tier Tier indicates the fidelity tier of this experiment (1-6). Tier 1: basic recovery (PodKill), safe for CI/kind. Tier 2: config/network faults (ConfigDrift, NetworkPartition). Tier 3: resource mutation (CRDMutation, FinalizerBlock, OwnerRefOrphan, LabelStomping, ClientFault). Tier 4: cluster-wide impact (WebhookDisrupt, RBACRevoke, WebhookLatency). Tier 5: destructive (NamespaceDeletion, QuotaExhaustion). Tier 6: multi-fault and upgrade scenarios. +kubebuilder:validation:Minimum=1 +kubebuilder:validation:Maximum=6 +kubebuilder:default=1

TargetSpec

Field Type JSON Description
Operator string operator +kubebuilder:validation:MinLength=1
Component string component +kubebuilder:validation:MinLength=1
Resource string resource

SteadyStateSpec

Field Type JSON Description
Checks []SteadyStateCheck checks +listType=atomic
Timeout metav1.Duration timeout

SteadyStateCheck

SteadyStateCheck defines a single check for steady-state verification. Note: APIVersion refers to the target resource's API version (e.g. "apps/v1"), not the CRD's own TypeMeta API version.

Field Type JSON Description
Type CheckType type
APIVersion string apiVersion
Kind string kind
Name string name
Namespace string namespace
ConditionType string conditionType
FieldPath string fieldPath
ExpectedValue string expectedValue

InjectionSpec

Field Type JSON Description
Type InjectionType type
Parameters map[string]string parameters
Count int32 count Count is the number of targets to affect. Defaults to 1. +kubebuilder:validation:Minimum=1 +kubebuilder:validation:Maximum=100 +kubebuilder:default=1
TTL metav1.Duration ttl TTL is how long the injected fault stays active. When set, the fault is reverted once the TTL elapses and the recovery window (recoveryTimeout) is measured from the fault removal, so the experiment observes a full recovery period with the fault gone. When unset, drivers differ: the CLI keeps the legacy timing (post-check after recoveryTimeout measured from injection, cleanup deferred to the end of the run), while the controller always reverts before the post-check.
DangerLevel DangerLevel dangerLevel

BlastRadiusSpec

Field Type JSON Description
MaxPodsAffected int32 maxPodsAffected +kubebuilder:validation:Minimum=1
AllowedNamespaces []string allowedNamespaces +listType=set
ForbiddenResources []string forbiddenResources +listType=set
AllowDangerous bool allowDangerous
DryRun bool dryRun

HypothesisSpec

Field Type JSON Description
Description string description +kubebuilder:validation:MinLength=1
RecoveryTimeout metav1.Duration recoveryTimeout +optional

ChaosExperimentStatus

Field Type JSON Description
Phase ExperimentPhase phase
Verdict Verdict verdict
ObservedGeneration int64 observedGeneration +kubebuilder:validation:Minimum=0
Message string message Message provides a human-readable description of the current status. +optional
StartTime *metav1.Time startTime
EndTime *metav1.Time endTime
InjectionStartedAt *metav1.Time injectionStartedAt
FaultRevertedAt *metav1.Time faultRevertedAt FaultRevertedAt records when the injected fault was actually removed. The recovery window is measured from this time, not from InjectionStartedAt, so persistent faults (e.g. NetworkPartition) get a full recoveryTimeout of observation after the fault is gone. +optional
PostCheckStartedAt *metav1.Time postCheckStartedAt PostCheckStartedAt records when the post-check's reconciliation polling began. The controller polls one cycle per reconcile until all managed resources reconcile or PostCheckStartedAt + recoveryTimeout passes; re-entries resume from this time instead of restarting. +optional
PostCheckCycles int postCheckCycles PostCheckCycles is the number of reconciliation poll cycles run so far in the post-check, accumulated across requeues. +optional
SteadyStatePre *CheckResult steadyStatePre
SteadyStatePost *CheckResult steadyStatePost
InjectionLog []InjectionEvent injectionLog +listType=atomic
EvaluationResult *EvaluationSummary evaluationResult
CleanupError string cleanupError
Conditions []metav1.Condition conditions +listType=map +listMapKey=type

EvaluationSummary

EvaluationSummary is the CRD-embeddable evaluation result.

Field Type JSON Description
Verdict Verdict verdict
Confidence string confidence
RecoveryTime string recoveryTime
ReconcileCycles int reconcileCycles
Deviations []string deviations +listType=atomic

CheckResult

Field Type JSON Description
Passed bool passed
ChecksRun int32 checksRun
ChecksPassed int32 checksPassed
Details []CheckDetail details +listType=atomic
Timestamp metav1.Time timestamp

CheckDetail

Field Type JSON Description
Check SteadyStateCheck check
Passed bool passed
Value string value
Error string error

InjectionEvent

Field Type JSON Description
Timestamp metav1.Time timestamp
Type InjectionType type
Target string target
Action string action
Details map[string]string details