Skip to content

Commit

Permalink
Add back --use-env in prepare-envtest.sh (gardener#7736)
Browse files Browse the repository at this point in the history
* Add back `--use-env` in `prepare-envtest.sh`

* Update hack/prepare-envtest.sh

Co-authored-by: Shafeeque E S <shafeeque.e.s@sap.com>

---------

Co-authored-by: Shafeeque E S <shafeeque.e.s@sap.com>
  • Loading branch information
timebertt and shafeeqes authored Mar 30, 2023
1 parent fd601cb commit 7402027
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hack/prepare-envtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ if ! command -v setup-envtest &> /dev/null ; then
exit 1
fi

export KUBEBUILDER_ASSETS="$(setup-envtest use -p path ${ENVTEST_K8S_VERSION})"
# --use-env allows overwriting the envtest tools path via the KUBEBUILDER_ASSETS env var
export KUBEBUILDER_ASSETS="$(setup-envtest use --use-env -p path ${ENVTEST_K8S_VERSION})"
echo "using envtest tools installed at '$KUBEBUILDER_ASSETS'"

source "$(dirname "$0")/test-integration.env"

0 comments on commit 7402027

Please sign in to comment.