96aff26d80
This patch introduces the following changes. 1. benchmark-operator is deployed during browbeat installation if install_e2e_benchmarking is set to true in group_vars/all.yml. This is because the same operator can be used for multiple Rally iterations. 2. A rally plugin to run kube-burner workloads has been created. Change-Id: I4fb67c4e986a8be589cf1eca615b2bb2748cba55
30 lines
674 B
Bash
Executable File
30 lines
674 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
ansible_dir=`pwd`
|
|
cd gather/e2e-benchmarking/workloads/kube-burner
|
|
|
|
create_operator_deploy_script() {
|
|
cat > deploy_operator.sh <<- EOM
|
|
#!/usr/bin/bash -e
|
|
|
|
set -e
|
|
|
|
. common.sh
|
|
|
|
deploy_operator
|
|
exit 0
|
|
EOM
|
|
}
|
|
|
|
remove_unnecessary_calls_from_scripts() {
|
|
find . -type f -name '*fromgit.sh' | xargs sed -i -e 's/deploy_operator//g'
|
|
find . -type f -name '*fromgit.sh' | xargs sed -i -e 's/check_running_benchmarks//g'
|
|
find . -type f -name '*fromgit.sh' | xargs sed -i -e 's/rm -rf benchmark-operator//g'
|
|
}
|
|
|
|
create_operator_deploy_script
|
|
sudo chmod 775 deploy_operator.sh
|
|
./deploy_operator.sh
|
|
remove_unnecessary_calls_from_scripts
|
|
cd $ansible_dir
|