Skip to content

Commit

Permalink
(from AES) output the kluster uid for easier debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Schloming committed Sep 4, 2020
1 parent 1be6f30 commit 12b462e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build-aux/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ start_cluster() {
echo "cannot get cluster, kubeconfig ${kubeconfig} exists" 1>&2
return 1
fi
name=$(curl -s -H "Authorization: bearer ${KUBECEPTION_TOKEN}" "https://sw.bakerstreet.io/kubeception/api/klusters/ci-?generate=true&timeoutSecs=${timeout}&profile=${profile}" -X PUT | head -1 | cut -c2-)
echo "#${name}" > "${kubeconfig}"
curl -s -H "Authorization: bearer ${KUBECEPTION_TOKEN}" "https://sw.bakerstreet.io/kubeception/api/klusters/ci-?generate=true&timeoutSecs=${timeout}&profile=${profile}" -X PUT > "${kubeconfig}"
printf "${BLU}Acquiring cluster:\n==${END}\n" 1>&2
cat "${kubeconfig}" 1>&2
printf "${BLU}==${END}\n" 1>&2
}

await_cluster() {
Expand Down

0 comments on commit 12b462e

Please sign in to comment.