2020-08-20 16:03:26 +00:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
# Install deps
|
2022-08-25 13:25:53 +00:00
|
|
|
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
|
2020-08-20 16:03:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Configure environment
|
|
|
|
export KUBECONFIG=`pwd`/kubeconfig
|
|
|
|
export E2E_TEST_CONFIG=`pwd`/e2e-test-config
|
2023-12-05 15:45:12 +00:00
|
|
|
export E2E_TEST_FULL_IMAGE=true
|
2020-08-20 16:03:26 +00:00
|
|
|
|
|
|
|
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
|
2021-03-09 10:13:02 +00:00
|
|
|
if make poll-images; then
|
2020-08-20 16:03:26 +00:00
|
|
|
break
|
2022-10-27 20:26:26 +00:00
|
|
|
elif [ $i -ge 35 ]; then
|
2021-12-02 08:51:28 +00:00
|
|
|
echo "ERROR: too many tries when polling for image"
|
2020-08-20 16:03:26 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
2022-01-21 08:39:47 +00:00
|
|
|
sleep 60
|
2020-08-20 16:03:26 +00:00
|
|
|
|
|
|
|
i=$(( $i + 1 ))
|
|
|
|
done
|
|
|
|
|
|
|
|
# Configure environment and run tests
|
2020-09-15 08:53:50 +00:00
|
|
|
make e2e-test
|