Skip to content

Commit

Permalink
Merge pull request #701 from josecastillolema/wb-iter
Browse files Browse the repository at this point in the history
Discard ITERATIONS when running web-burner
  • Loading branch information
openshift-merge-bot[bot] authored Jun 10, 2024
2 parents f9694e4 + 7d81a28 commit fa7bc4f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions workloads/kube-burner-ocp-wrapper/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ EOF
# Get hosted cluster ID and name
HC_ID=$(oc get infrastructure cluster -o go-template --template='{{.status.infrastructureName}}')
HC_NAME=$(oc get infrastructure cluster -o go-template --template='{{range .status.platformStatus.aws.resourceTags}}{{if eq .key "api.openshift.com/name" }}{{.value}}{{end}}{{end}}')

if [[ -z ${HC_ID} ]] || [[ -z ${HC_NAME} ]]; then
echo "Couldn't obtain hosted cluster id and/or hosted cluster name"
echo -e "HC_ID: ${HC_ID}\nHC_NAME: ${HC_NAME}"
exit 1
fi

# Hosted control-plane namespace is composed by the cluster ID plus the cluster name
HCP_NAMESPACE=${HC_ID}-${HC_NAME}

echo "Creating OBO route"
oc --kubeconfig=${MC_KUBECONFIG} apply -f obo-route.yml
echo "Fetching OBO endpoint"
Expand All @@ -68,7 +68,7 @@ EOF
fi
done
MGMT_WORKER_NODES=${Q_NODES}

echo "Exporting required vars"
cat << EOF
MC_OBO: ${MC_OBO}
Expand All @@ -83,7 +83,7 @@ EOF
if [[ ${WORKLOAD} =~ "index" ]]; then
export elapsed=${ELAPSED:-20m}
fi

export MC_OBO MC_PROMETHEUS MC_PROMETHEUS_TOKEN HOSTED_PROMETHEUS HOSTED_PROMETHEUS_TOKEN HCP_NAMESPACE MGMT_WORKER_NODES
}

Expand All @@ -96,7 +96,7 @@ else
cmd="${KUBE_DIR}/kube-burner-ocp ${WORKLOAD} --log-level=${LOG_LEVEL} --qps=${QPS} --burst=${BURST} --gc=${GC} --uuid ${UUID}"
fi
cmd+=" ${EXTRA_FLAGS}"
if [[ ${WORKLOAD} =~ "cluster-density" ]]; then
if [[ ${WORKLOAD} =~ "cluster-density" ]] && [[ ! ${WORKLOAD} =~ "web-burner" ]] ; then
ITERATIONS=${ITERATIONS:?}
cmd+=" --iterations=${ITERATIONS} --churn=${CHURN}"
fi
Expand Down

0 comments on commit fa7bc4f

Please sign in to comment.