1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-05 08:17:04 +00:00
node-feature-discovery/scripts/test-infra/test-e2e.sh
Feruzjon Muyassarov ea8906203a Increase image waiting timeout
We recently increase timeout for image building and pushing to GCR
due to some failures with timeout. This commit extends timeout for
waiting that image to be published.
Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
2022-10-27 23:26:26 +03:00

36 lines
888 B
Bash
Executable file

#!/bin/bash -e
# Install deps
curl -o /usr/local/bin/aws-iam-authenticator -L https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v0.5.7/aws-iam-authenticator_0.5.7_linux_amd64
chmod a+x /usr/local/bin/aws-iam-authenticator
curl -o /usr/local/bin/kubectl -L https://dl.k8s.io/release/v1.24.0/bin/linux/amd64/kubectl
chmod a+x /usr/local/bin/kubectl
# Configure environment
export KUBECONFIG=`pwd`/kubeconfig
export E2E_TEST_CONFIG=`pwd`/e2e-test-config
echo "$KUBECONFIG_DATA" > "$KUBECONFIG"
echo "$E2E_TEST_CONFIG_DATA" > "$E2E_TEST_CONFIG"
# 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