Skip to content

Commit

Permalink
Fix metrics-profile location
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Sevilla <rsevilla@redhat.com>
  • Loading branch information
rsevilla87 committed Oct 14, 2021
1 parent b4ea444 commit 5f26b61
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion workloads/kube-burner/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ deploy_workload() {
fi
cp -pR $(dirname ${WORKLOAD_TEMPLATE})/* ${tmpdir}
envsubst < ${WORKLOAD_TEMPLATE} > ${tmpdir}/config.yml
if [[ -n ${METRICS_PROFILE} ]]; then
if [[ -f metrics-profiles/${METRICS_PROFILE} ]]; then
cp metrics-profiles/${METRICS_PROFILE} ${tmpdir}/metrics.yml
fi
if [[ -f ${METRICS_PROFILE} ]]; then
cp ${METRICS_PROFILE} ${tmpdir}/metrics.yml
fi
if [[ -n ${ALERTS_PROFILE} ]]; then
Expand Down

0 comments on commit 5f26b61

Please sign in to comment.