Skip to content

Commit

Permalink
Add kind installation directory to the PATH
Browse files Browse the repository at this point in the history
Signed-off-by: thasnim-fluxone <[email protected]>
  • Loading branch information
thasnim-fluxone committed Nov 1, 2024
1 parent 868ee59 commit 8a007ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hack/install-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ set -eu
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd)"

# kind version
KIND_VERSION="${KIND_VERSION:-v0.22.0}"
KIND_VERSION="${KIND_VERSION:-v0.24.0}"

if ! hash kind > /dev/null 2>&1 ; then
echo "# Installing KinD..."
go install "sigs.k8s.io/kind@${KIND_VERSION}"
readonly PATH_TO_KIND="$(go env GOPATH)/bin"
export PATH="$PATH:$PATH_TO_KIND"
fi

# print kind version
Expand Down

0 comments on commit 8a007ab

Please sign in to comment.