mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
ff5e36be0d
Let's just rely on our Makefile everywhere. Plus the previous version was essentially broken as _PULL_BASE_REF env variable was not available in testing jobs.
34 lines
771 B
Bash
Executable file
34 lines
771 B
Bash
Executable file
#!/bin/bash -e
|
|
|
|
# Install deps
|
|
curl -o $HOME/bin/aws-iam-authenticator --create-dirs https://amazon-eks.s3-us-west-2.amazonaws.com/1.10.3/2018-07-26/bin/linux/amd64/aws-iam-authenticator
|
|
chmod a+x $HOME/bin/aws-iam-authenticator
|
|
export PATH=$PATH:$HOME/bin
|
|
|
|
|
|
# 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-image -e; then
|
|
break
|
|
elif [ $i -ge 10 ]; then
|
|
"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 -e
|
|
|