From a8fbdd08bcc7b30beb9f0ad1afeefb58975a012c Mon Sep 17 00:00:00 2001 From: Naga Ravi Chaitanya Elluri Date: Sat, 22 Jul 2023 12:16:00 -0400 Subject: [PATCH] Run Kraken from /tmp dir instead of root This is needed to avoid permission issues in prow env. --- prow/cpu-hog/prow_run.sh | 4 +++- prow/memory-hog/prow_run.sh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/prow/cpu-hog/prow_run.sh b/prow/cpu-hog/prow_run.sh index 6e9c17f..4e71ccb 100644 --- a/prow/cpu-hog/prow_run.sh +++ b/prow/cpu-hog/prow_run.sh @@ -8,7 +8,9 @@ ls source env.sh export KUBECONFIG=$KRKN_KUBE_CONFIG -krkn_loc=/root/kraken +# Move kraken from root dir to tmp to avoid permissions issues in prow until fixed in base image +cp -r /root/kraken /tmp/kraken +krkn_loc=/tmp/kraken SCENARIO_FOLDER="$krkn_loc/scenarios/arcaflow/cpu-hog" # cluster details diff --git a/prow/memory-hog/prow_run.sh b/prow/memory-hog/prow_run.sh index b94ddde..4d61618 100755 --- a/prow/memory-hog/prow_run.sh +++ b/prow/memory-hog/prow_run.sh @@ -8,7 +8,9 @@ ls source env.sh export KUBECONFIG=$KRKN_KUBE_CONFIG -krkn_loc=/root/kraken +# Move kraken from root dir to tmp to avoid permissions issues in prow until fixed in base image +cp -r /root/kraken /tmp/kraken +krkn_loc=/tmp/kraken SCENARIO_FOLDER="$krkn_loc/scenarios/arcaflow/memory-hog" # cluster details