From 8a007ab56586be8ddcd85dc73844ee1ee3525956 Mon Sep 17 00:00:00 2001 From: thasnim-fluxone Date: Sat, 2 Nov 2024 01:36:25 +0530 Subject: [PATCH] Add kind installation directory to the PATH Signed-off-by: thasnim-fluxone --- hack/install-kind.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hack/install-kind.sh b/hack/install-kind.sh index 41961e0a81..b9fbb5b16c 100755 --- a/hack/install-kind.sh +++ b/hack/install-kind.sh @@ -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