Skip to content

Commit

Permalink
Merge pull request #7666 from omerap12/patch-e2e-locally
Browse files Browse the repository at this point in the history
Improve kind cluster creation with proper error handling and version check
  • Loading branch information
k8s-ci-robot authored Jan 8, 2025
2 parents 3d9f1df + 8530d99 commit 415a60f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions vertical-pod-autoscaler/hack/run-e2e-locally.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,12 @@ echo "Deleting KIND cluster 'kind'."
kind delete cluster -n kind -q

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

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

0 comments on commit 415a60f

Please sign in to comment.