Skip to content

Commit

Permalink
bootstrap: Add gcloud utilities to PATH during container start (#3302)
Browse files Browse the repository at this point in the history
The google cloud utilities now require an extra step to be added to the
`$PATH` before they can be executed[1].

Without this, lanes will fail due to not being able to find some of the
gcloud utilities[2].

[1] https://prow.ci.kubevirt.io/view/gs/kubevirt-prow/logs/publish-bootstrap-image/1765415256181444608#1:build-log.txt%3A2856
[2] https://prow.ci.kubevirt.io/view/gs/kubevirt-prow/pr-logs/pull/kubevirt_kubevirt/11297/pull-kubevirt-e2e-windows2016/1765751732119277568#1:build-log.txt%3A222

Signed-off-by: Brian Carey <[email protected]>
  • Loading branch information
brianmcarey authored Mar 8, 2024
1 parent 67768d2 commit 8fac017
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions images/bootstrap/runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ set +o errexit
# add $GOPATH/bin to $PATH
export PATH="${GOPATH}/bin:${PATH}"
mkdir -p "${GOPATH}/bin"
# Add gcloud utilities to $PATH
source /google-cloud-sdk/path.bash.inc
# Authenticate gcloud, allow failures
if [[ -n "${GOOGLE_APPLICATION_CREDENTIALS:-}" ]]; then
gcloud auth activate-service-account --key-file="${GOOGLE_APPLICATION_CREDENTIALS}" || true
Expand Down

0 comments on commit 8fac017

Please sign in to comment.