Skip to content

Commit 415a60f

Browse files
authored
Merge pull request #7666 from omerap12/patch-e2e-locally
Improve kind cluster creation with proper error handling and version check
2 parents 3d9f1df + 8530d99 commit 415a60f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

vertical-pod-autoscaler/hack/run-e2e-locally.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,12 @@ echo "Deleting KIND cluster 'kind'."
7474
kind delete cluster -n kind -q
7575

7676
echo "Creating KIND cluster 'kind'"
77-
KIND_VERSION="kindest/node:v1.26.3"
78-
kind create cluster --image=${KIND_VERSION}
77+
KIND_VERSION="kindest/node:v1.32.0"
78+
if ! kind create cluster --image=${KIND_VERSION}; then
79+
echo "Failed to create KIND cluster. Exiting. Make sure kind version is updated."
80+
echo "Available versions: https://github.com/kubernetes-sigs/kind/releases"
81+
exit 1
82+
fi
7983

8084
echo "Building metrics-pump image"
8185
docker build -t localhost:5001/write-metrics:dev -f ${SCRIPT_ROOT}/hack/e2e/Dockerfile.externalmetrics-writer ${SCRIPT_ROOT}/hack

0 commit comments

Comments
 (0)