Skip to content

Commit

Permalink
e2e_export_logs: fix clustername var
Browse files Browse the repository at this point in the history
Previously, clustername was a static string. This patch
collects the real clustername.

Signed-off-by: Douglas Schilling Landgraf <[email protected]>
  • Loading branch information
dougsland committed Jan 2, 2022
1 parent 920d751 commit 23b1728
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hack/e2e_export_logs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@

set -e
pushd "${0%/*}" > /dev/null
E2E_DIR="$(pwd)/temp/e2e/"
E2E_DIR="$(pwd)/temp/e2e"
popd > /dev/null
E2E_FILE="${E2E_DIR}/clustername"
CLUSTERNAME=$(kind get clusters | head -1)
E2E_FILE="${E2E_DIR}/${CLUSTERNAME}"
E2E_LOGS="${E2E_DIR}/artifacts/logs"
kind export logs --name="$(cat $E2E_FILE)" -v=3 "${E2E_LOGS}"
kind export logs --name="${CLUSTERNAME}" -v=3 "${E2E_LOGS}"

0 comments on commit 23b1728

Please sign in to comment.