Runtime variable support in experiments
Understand how you can use runtime variables in chaos experiments.
Runtime variables provide flexibility in chaos experiments by allowing you to customize experiment parameters at execution time rather than hardcoding them during creation.
Create and Run Experiments
You can execute chaos experiments using either static values or dynamic runtime values.
Static variables: Define them directly in the experiment and use them without any modification.
Runtime variables: Specify them using
<+input>, allowing customization at runtime or through saved input sets.
Use Runtime Variables
To set up an experiment, specify details such as the name, environment, infrastructure, and fault name. In the Target Application and Tune Fault modals, you can choose between Fixed value and Runtime Input. Once you choose the input type, Save the changes.


Use Runtime Inputs in Pipelines
When you add a chaos experiment with runtime inputs to a Harness CD pipeline, those inputs automatically appear in the Experiment Inputs section of the chaos step configuration. You can then configure each input to be a runtime input for the pipeline as well, allowing you to provide values when the pipeline runs.
This enables you to:
Reuse the same experiment across multiple pipelines with different configurations
Dynamically provide experiment parameters at pipeline execution time
Customize chaos validation based on deployment context
For more information on using chaos experiments with runtime inputs in CD pipelines, see Using Runtime Inputs in Chaos Experiments.
Last updated
Was this helpful?