Skip to content

Commit 3973fc2

Browse files
tsebastianichaitanyaenr
authored andcommitted
renamed debug envvar from DEBUG to KRKN_DEBUG
Signed-off-by: Tullio Sebastiani <tsebasti@redhat.com>
1 parent c1aef50 commit 3973fc2

File tree

18 files changed

+28
-28
lines changed

18 files changed

+28
-28
lines changed

application-outages/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ source /home/krkn/env.sh
77
source /home/krkn/common_run.sh
88

99

10-
if [[ $DEBUG == "True" ]];then
10+
if [[ $KRKN_DEBUG == "True" ]];then
1111
set -ex
1212
ls -la /home/krkn/.kube
1313
fi

container-scenarios/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ source /home/krkn/main_env.sh
55
source /home/krkn/env.sh
66
source /home/krkn/common_run.sh
77

8-
if [[ $DEBUG == "True" ]];then
8+
if [[ $KRKN_DEBUG == "True" ]];then
99
set -ex
1010
fi
1111

@@ -20,7 +20,7 @@ envsubst < /home/krkn/kraken/config/config.yaml.template > /home/krkn/kraken/con
2020
# Run Kraken
2121
cd /home/krkn/kraken
2222

23-
if [[ $DEBUG == "True" ]];then
23+
if [[ $KRKN_DEBUG == "True" ]];then
2424
cat config/container_scenario_config.yaml
2525
cat scenarios/container_scenario.yaml
2626
fi

docs/all_scenarios_env.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ TELEMETRY_FILTER_PATTER | Filter logs based on certain time stamp patterns |["(\
4343
TELEMETRY_CLI_PATH | OC Cli path, if not specified will be search in $PATH | _blank_ |
4444
ELASTIC_SERVER | Be able to track telemtry data in elasticsearch, this is the url of the elasticsearch data storage | _blank_ |
4545
ELASTIC_INDEX | Elastic search index pattern to post results to | _blank_ |
46-
DEBUG| If set to "True" enables krkn Verbose output | "False" |
46+
KRKN_DEBUG| If set to "True" enables krkn Verbose output | "False" |
4747

4848
**NOTE**: For setting the TELEMETRY_ARCHIVE_SIZE,the higher the number of archive files will be produced and uploaded (and processed by backup_thread simultaneously).For unstable/slow connection is better to keep this value low increasing the number of backup_threads, in this way, on upload failure, the retry will happen only on the failed chunk without affecting the whole upload.

env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ export TELEMETRY_EVENTS_BACKUP=${TELEMETRY_EVENTS_BACKUP:=True}
5454

5555
# Set KUBECONFIG to mounted kubeconfig
5656
export KUBECONFIG=${KRKN_KUBE_CONFIG}
57-
export DEBUG=${DEBUG:="False"}
57+
export KRKN_DEBUG=${KRKN_DEBUG:="False"}

network-chaos/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ source /home/krkn/main_env.sh
44
source /home/krkn/env.sh
55
source /home/krkn/common_run.sh
66

7-
if [[ $DEBUG == "True" ]];then
7+
if [[ $KRKN_DEBUG == "True" ]];then
88
set -ex
99
ls -la /home/krkn/.kube
1010
fi

node-cpu-hog/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ source $ROOT_FOLDER/main_env.sh
99
source $ROOT_FOLDER/env.sh
1010
source $ROOT_FOLDER/common_run.sh
1111

12-
if [[ $DEBUG == "True" ]];then
12+
if [[ $KRKN_DEBUG == "True" ]];then
1313
set -ex
1414
fi
1515

@@ -22,7 +22,7 @@ config_setup
2222
# Run Kraken
2323
cd $KRAKEN_FOLDER
2424

25-
if [[ $DEBUG == "True" ]];then
25+
if [[ $KRKN_DEBUG == "True" ]];then
2626
cat scenarios/kube/cpu-hog/input.yaml
2727
cat config/cpu_config.yaml
2828
fi

node-io-hog/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ source $ROOT_FOLDER/main_env.sh
99
source $ROOT_FOLDER/env.sh
1010
source $ROOT_FOLDER/common_run.sh
1111

12-
if [[ $DEBUG == "True" ]];then
12+
if [[ $KRKN_DEBUG == "True" ]];then
1313
set -ex
1414
fi
1515

@@ -22,7 +22,7 @@ config_setup
2222
# Run Kraken
2323
cd $KRAKEN_FOLDER
2424

25-
if [[ $DEBUG == "True" ]];then
25+
if [[ $KRKN_DEBUG == "True" ]];then
2626
cat config/io_config.yaml
2727
cat scenarios/kube/io-hog/input.yaml
2828
fi

node-memory-hog/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ source $ROOT_FOLDER/main_env.sh
99
source $ROOT_FOLDER/env.sh
1010
source $ROOT_FOLDER/common_run.sh
1111

12-
if [[ $DEBUG == "True" ]];then
12+
if [[ $KRKN_DEBUG == "True" ]];then
1313
set -ex
1414
fi
1515

@@ -24,7 +24,7 @@ config_setup
2424
# Run Kraken
2525
cd $KRAKEN_FOLDER
2626

27-
if [[ $DEBUG == "True" ]];then
27+
if [[ $KRKN_DEBUG == "True" ]];then
2828
cat config/mem_config.yaml
2929
cat scenarios/kube/memory-hog/input.yaml
3030
fi

node-scenarios/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ source /home/krkn/main_env.sh
44
source /home/krkn/env.sh
55
source /home/krkn/common_run.sh
66

7-
if [[ $DEBUG == "True" ]];then
7+
if [[ $KRKN_DEBUG == "True" ]];then
88
set -ex
99
fi
1010

@@ -45,7 +45,7 @@ envsubst < /home/krkn/kraken/config/config.yaml.template > /home/krkn/kraken/con
4545
cd /home/krkn/kraken
4646

4747

48-
if [[ $DEBUG == "True" ]];then
48+
if [[ $KRKN_DEBUG == "True" ]];then
4949
cat config/node_scenario_config.yaml
5050
cat scenarios/node_scenario.yaml
5151
fi

pod-network-chaos/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ source /home/krkn/main_env.sh
44
source /home/krkn/env.sh
55
source /home/krkn/common_run.sh
66

7-
if [[ $DEBUG == "True" ]];then
7+
if [[ $KRKN_DEBUG == "True" ]];then
88
set -ex
99
ls -la /home/krkn/.kube
1010
fi
@@ -25,7 +25,7 @@ fi
2525
# Run Kraken
2626
cd /home/krkn/kraken
2727

28-
if [[ $DEBUG == "True" ]];then
28+
if [[ $KRKN_DEBUG == "True" ]];then
2929
cat /home/krkn/kraken/config/pod_network_scenario_config.yaml
3030
cat /home/krkn/kraken/scenarios/pod_network_scenario.yaml
3131
fi

0 commit comments

Comments
 (0)