diff --git a/scripts/test-infra/test-e2e-presubmit.sh b/scripts/test-infra/test-e2e-presubmit.sh index 6905d148f..5f9f3583e 100755 --- a/scripts/test-infra/test-e2e-presubmit.sh +++ b/scripts/test-infra/test-e2e-presubmit.sh @@ -2,66 +2,32 @@ set -o pipefail # Configure environment -KIND_IMAGE="kindest/node:v1.25.3" -export IMAGE_REGISTRY="localhost:5001" -export CLUSTER_NAME=$(git describe --tags --dirty --always) +export KIND_VERSION="v0.23.0" +export KIND_NODE_IMAGE="kindest/node:v1.30.2" +export CLUSTER_NAME="nfd-e2e" export KUBECONFIG="/tmp/kubeconfig_$CLUSTER_NAME" +export IMAGE_REPO="registry.local/node-feature-discovery" +export IMAGE_TAG_NAME=$(git describe --tags --dirty --always) -# create registry container unless it already exists -reg_name='kind-registry' -reg_port='5001' -if [ "$(docker inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || true)" != 'true' ]; then - docker run \ - -d --restart=always -p "127.0.0.1:${reg_port}:5000" --name "${reg_name}" \ - registry:2 -fi +# Install kind +go install sigs.k8s.io/kind@$KIND_VERSION # create a cluster with the local registry enabled in containerd -cat <