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
Markus Lehtonen a7835a060f scripts/test-e2e: update aws-iam-authenticator to v0.5.7
We need the latest version to support client.authentication.k8s.io/v1.
The previous version we used only supported v1alpha1 which was dropped
in K8s v1.24.
2022-06-28 16:56:43 +03:00

34 lines
794 B
Bash
Executable file

#!/bin/bash -e
# Install deps
curl -o $HOME/bin/aws-iam-authenticator --create-dirs -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 $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-images; then
break
elif [ $i -ge 27 ]; 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