From ff606ce5596a0c38703ece6f5760eb34460d3d42 Mon Sep 17 00:00:00 2001 From: Paige Rubendall Date: Wed, 24 Jan 2024 16:46:12 -0500 Subject: [PATCH] adding tmp in more files Signed-off-by: Paige Rubendall --- container-scenarios/prow_run.sh | 12 ++++++------ cpu-hog/prow_run.sh | 6 +++--- io-hog/prow_run.sh | 6 +++--- namespace-scenarios/prow_run.sh | 12 ++++++------ network-chaos/prow_run.sh | 10 +++++----- node-disruptions/prow_run.sh | 6 +++--- pod-scenarios/prow_run.sh | 14 +++++++------- pvc-scenario/prow_run.sh | 12 ++++++------ 8 files changed, 39 insertions(+), 39 deletions(-) diff --git a/container-scenarios/prow_run.sh b/container-scenarios/prow_run.sh index 519a0c9..f250595 100755 --- a/container-scenarios/prow_run.sh +++ b/container-scenarios/prow_run.sh @@ -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 diff --git a/cpu-hog/prow_run.sh b/cpu-hog/prow_run.sh index ba2aa35..d6a6d02 100644 --- a/cpu-hog/prow_run.sh +++ b/cpu-hog/prow_run.sh @@ -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 diff --git a/io-hog/prow_run.sh b/io-hog/prow_run.sh index 8d99411..a86c43c 100644 --- a/io-hog/prow_run.sh +++ b/io-hog/prow_run.sh @@ -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 diff --git a/namespace-scenarios/prow_run.sh b/namespace-scenarios/prow_run.sh index 98bd6cf..50f3a27 100755 --- a/namespace-scenarios/prow_run.sh +++ b/namespace-scenarios/prow_run.sh @@ -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 diff --git a/network-chaos/prow_run.sh b/network-chaos/prow_run.sh index 7b41aa9..4757acf 100755 --- a/network-chaos/prow_run.sh +++ b/network-chaos/prow_run.sh @@ -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 diff --git a/node-disruptions/prow_run.sh b/node-disruptions/prow_run.sh index 49d6bbc..941e407 100644 --- a/node-disruptions/prow_run.sh +++ b/node-disruptions/prow_run.sh @@ -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 diff --git a/pod-scenarios/prow_run.sh b/pod-scenarios/prow_run.sh index 59e3481..8713ed7 100755 --- a/pod-scenarios/prow_run.sh +++ b/pod-scenarios/prow_run.sh @@ -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 diff --git a/pvc-scenario/prow_run.sh b/pvc-scenario/prow_run.sh index e0757b5..154f320 100755 --- a/pvc-scenario/prow_run.sh +++ b/pvc-scenario/prow_run.sh @@ -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