1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-16 21:38:23 +00:00
node-feature-discovery/scripts/test-infra/test-e2e.sh
2024-07-08 13:38:38 +03:00

26 lines
574 B
Bash
Executable file

#!/bin/bash -e
# Configure environment
export KIND_VERSION="v0.23.0"
export KIND_NODE_IMAGE="kindest/node:v1.30.2"
export CLUSTER_NAME="nfd-e2e"
export KUBECONFIG=`pwd`/kubeconfig
export IMAGE_REGISTRY="gcr.io/k8s-staging-nfd"
export E2E_TEST_FULL_IMAGE=true
# Wait for the image to be built and published
i=1
while true; do
if make poll-images; then
break
elif [ $i -ge 35 ]; then
echo "ERROR: too many tries when polling for image"
exit 1
fi
sleep 60
i=$(( $i + 1 ))
done
# Configure environment and run tests
make e2e-test