Skip to content

Commit

Permalink
Merge pull request #7 from paigerube14/test_tmp
Browse files Browse the repository at this point in the history
Adding tmp in more files
  • Loading branch information
paigerube14 authored Jan 24, 2024
2 parents c4fdf7b + ff606ce commit 0ed0e3d
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 39 deletions.
12 changes: 6 additions & 6 deletions container-scenarios/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ source container-scenarios/env.sh
krkn_loc=/root/kraken

# Substitute config with environment vars defined
envsubst < container-scenarios/container_scenario.yaml.template > container-scenarios/container_scenario.yaml
export SCENARIO_FILE="- container-scenarios/container_scenario.yaml"
envsubst < config.yaml.template > container_scenario_config.yaml
envsubst < container-scenarios/container_scenario.yaml.template > /tmp/container-scenarios/container_scenario.yaml
export SCENARIO_FILE="- /tmp/container-scenarios/container_scenario.yaml"
envsubst < config.yaml.template > /tmp/container_scenario_config.yaml

# Run Kraken
cat container_scenario_config.yaml
cat container-scenarios/container_scenario.yaml
python3.9 $krkn_loc/run_kraken.py --config=container_scenario_config.yaml
cat /tmp/container_scenario_config.yaml
cat /tmp/container-scenarios/container_scenario.yaml
python3.9 $krkn_loc/run_kraken.py --config=/tmp/container_scenario_config.yaml
6 changes: 3 additions & 3 deletions cpu-hog/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ checks
#envsubst < node-cpu-hog/input.yaml.template> node-cpu-hog/cpu_hog_scenario.yaml
#export SCENARIO_FILE="node-cpu-hog/cpu_hog_scenario.yaml"
export SCENARIO_FILE="$SCENARIO_FOLDER/input.yaml"
envsubst < config.yaml.template > cpu_hog_config.yaml
envsubst < config.yaml.template > /tmp/cpu_hog_config.yaml

# Run Kraken
cat cpu_hog_config.yaml
cat /tmp/cpu_hog_config.yaml
cat $SCENARIO_FOLDER/input.yaml
python3.9 $krkn_loc/run_kraken.py --config=cpu_hog_config.yaml
python3.9 $krkn_loc/run_kraken.py --config=/tmp/cpu_hog_config.yaml
6 changes: 3 additions & 3 deletions io-hog/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ checks
#envsubst < node-io-hog/input.yaml.template> node-io-hog/io_hog_scenario.yaml
#export SCENARIO_FILE="node-io-hog/io_hog_scenario.yaml"
export SCENARIO_FILE="$SCENARIO_FOLDER/input.yaml"
envsubst < config.yaml.template > io_hog_config.yaml
envsubst < config.yaml.template > /tmp/io_hog_config.yaml

# Run Kraken
cat io_hog_config.yaml
cat /tmp/io_hog_config.yaml
cat $SCENARIO_FOLDER/input.yaml
python3.9 $krkn_loc/run_kraken.py --config=io_hog_config.yaml
python3.9 $krkn_loc/run_kraken.py --config=/tmp/io_hog_config.yaml
12 changes: 6 additions & 6 deletions namespace-scenarios/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ source service-disruption-scenarios/env.sh
krkn_loc=/root/kraken

# Substitute config with environment vars defined
export SCENARIO_FILE="- service-disruption-scenarios/service_disruption_scenario.yaml"
envsubst < service-disruption-scenarios/namespace_scenario.yaml.template > service-disruption-scenarios/service_disruption_scenario.yaml
envsubst < config.yaml.template > service_disruption_config.yaml
export SCENARIO_FILE="- /tmp/service-disruption-scenarios/service_disruption_scenario.yaml"
envsubst < service-disruption-scenarios/namespace_scenario.yaml.template > /tmp/service-disruption-scenarios/service_disruption_scenario.yaml
envsubst < config.yaml.template > /tmp/service_disruption_config.yaml

# Run Kraken
cat service_disruption_config.yaml
cat service-disruption-scenarios/service_disruption_scenario.yaml
python3.9 $krkn_loc/run_kraken.py --config=service_disruption_config.yaml
cat /tmp/service_disruption_config.yaml
cat /tmp/service-disruption-scenarios/service_disruption_scenario.yaml
python3.9 $krkn_loc/run_kraken.py --config=/tmp/service_disruption_config.yaml
10 changes: 5 additions & 5 deletions network-chaos/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ else
exit 1
fi

export SCENARIO_FILE=network-chaos/network_chaos.yaml
envsubst < config.yaml.template > network_chaos_config.yaml
export SCENARIO_FILE=/tmp/network-chaos/network_chaos.yaml
envsubst < config.yaml.template > /tmp/network_chaos_config.yaml

cat network_chaos_config.yaml
cat network-chaos/network_chaos.yaml
cat /tmp/network_chaos_config.yaml
cat /tmp/network-chaos/network_chaos.yaml

python3.9 $krn_loc/run_kraken.py --config=network_chaos_config.yaml
python3.9 $krn_loc/run_kraken.py --config=/tmp/network_chaos_config.yaml
6 changes: 3 additions & 3 deletions node-disruptions/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ else
fi
export SCENARIO_TYPE=node_scenarios
export SCENARIO_FILE=$krkn_loc/scenarios/node_scenario.yaml
envsubst < config.yaml.template > node_scenario_config.yaml
envsubst < config.yaml.template > /tmp/node_scenario_config.yaml

# Run Kraken
cat $krkn_loc/scenarios/node_scenario.yaml
cat node_scenario_config.yaml
python3.9 $krkn_loc/run_kraken.py --config=node_scenario_config.yaml
cat /tmp/node_scenario_config.yaml
python3.9 $krkn_loc/run_kraken.py --config=/tmp/node_scenario_config.yaml
14 changes: 7 additions & 7 deletions pod-scenarios/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ krn_loc=/root/kraken

# Substitute config with environment vars defined
if [[ -z "$POD_LABEL" ]]; then
envsubst < pod-scenarios/pod_scenario_namespace.yaml.template > pod-scenarios/pod_scenario.yaml
envsubst < pod-scenarios/pod_scenario_namespace.yaml.template > /tmp/pod-scenarios/pod_scenario.yaml
else
envsubst < pod-scenarios/pod_scenario.yaml.template > pod-scenarios/pod_scenario.yaml
envsubst < pod-scenarios/pod_scenario.yaml.template > /tmp/pod-scenarios/pod_scenario.yaml
fi
export SCENARIO_FILE=pod-scenarios/pod_scenario.yaml
envsubst < config.yaml.template > pod_scenario_config.yaml
export SCENARIO_FILE=/tmp/pod-scenarios/pod_scenario.yaml
envsubst < config.yaml.template > /tmp/pod_scenario_config.yaml

cat pod_scenario_config.yaml
cat pod-scenarios/pod_scenario.yaml
cat /tmp/pod_scenario_config.yaml
cat /tmp/pod-scenarios/pod_scenario.yaml

python3.9 $krn_loc/run_kraken.py --config=pod_scenario_config.yaml
python3.9 $krn_loc/run_kraken.py --config=/tmp/pod_scenario_config.yaml
12 changes: 6 additions & 6 deletions pvc-scenario/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ source pvc-scenario/env.sh
krkn_loc=/root/kraken

# Substitute config with environment vars defined
envsubst < pvc-scenario/pvc_scenario.yaml.template > pvc-scenario/pvc_scenario.yaml
export SCENARIO_FILE="pvc-scenario/pvc_scenario.yaml"
envsubst < config.yaml.template > pvc_scenario_config.yaml
envsubst < pvc-scenario/pvc_scenario.yaml.template > /tmp/pvc-scenario/pvc_scenario.yaml
export SCENARIO_FILE="/tmp/pvc-scenario/pvc_scenario.yaml"
envsubst < config.yaml.template > /tmp/pvc_scenario_config.yaml

# Run Kraken
cat pvc_scenario_config.yaml
cat pvc-scenario/pvc_scenario.yaml
python3.9 $krkn_loc/run_kraken.py --config=pvc_scenario_config.yaml 2>&1
cat /tmp/pvc_scenario_config.yaml
cat /tmp/pvc-scenario/pvc_scenario.yaml
python3.9 $krkn_loc/run_kraken.py --config=/tmp/pvc_scenario_config.yaml 2>&1

0 comments on commit 0ed0e3d

Please sign in to comment.