Skip to content

Commit

Permalink
Expose duration paramter for node-scenarios
Browse files Browse the repository at this point in the history
Related PR in krkn: krkn-chaos/krkn#686

Signed-off-by: Naga Ravi Chaitanya Elluri <[email protected]>
  • Loading branch information
chaitanyaenr committed Aug 12, 2024
1 parent 591ff90 commit 2110049
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/node-scenarios.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ INSTANCE_COUNT | Targeted instance count matching the label selector
RUNS | Iterations to perform action on a single node | 1 |
CLOUD_TYPE | Cloud platform on top of which cluster is running, supported platforms - aws or vmware | aws |
TIMEOUT | Duration to wait for completion of node scenario injection | 180 |
DURATION | Duration to stop the node before running the start action - not supported for vmware and ibm cloud type | 120 |
VERIFY_SESSION | Only needed for vmware - Set to True if you want to verify the vSphere client session using certificates | False |
SKIP_OPENSHIFT_CHECKS | Only needed for vmware - Set to True if you don't want to wait for the status of the nodes to change on OpenShift before passing the scenario | False |

Expand Down
1 change: 1 addition & 0 deletions node-scenarios/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export INSTANCE_COUNT=${INSTANCE_COUNT:=1}
export RUNS=${RUNS:=1}
export CLOUD_TYPE=${CLOUD_TYPE:="aws"}
export TIMEOUT=${TIMEOUT:=180}
export DURATION=${DURATION:=120}
export SCENARIO_TYPE=${SCENARIO_TYPE:=node_scenarios}
export SCENARIO_FILE=${SCENARIO_FILE:=scenarios/node_scenario.yaml}
export SCENARIO_POST_ACTION=${SCENARIO_POST_ACTION:=""}
Expand Down
3 changes: 2 additions & 1 deletion node-scenarios/node_scenario.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ node_scenarios:
node_name: $NODE_NAME # node on which scenario has to be injected
label_selector: $LABEL_SELECTOR # when node_name is not specified, a node with matching label_selector is selected for node chaos scenario injection
instance_count: $INSTANCE_COUNT # number of nodes to select matching the label selector to inject each scenario under actions
runs: $RUNS # number of times to inject each scenario under actions (on the same node)
runs: $RUNS # number of times to inject each scenario under actions (on the same node)
timeout: $TIMEOUT # duration to wait for completion of node scenario injection
duration: $DURATION # duration to stop the node before running the start action
cloud_type: $CLOUD_TYPE # cloud type on which Kubernetes/OpenShift runs

0 comments on commit 2110049

Please sign in to comment.