From fb2b1926f6839477d2507bcebc4f621fed08cb7a Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Fri, 5 Jul 2024 11:27:04 +0300 Subject: [PATCH] scripts: refresh e2e-presubmit test script Update and simplify. --- scripts/test-infra/test-e2e-presubmit.sh | 56 +++++------------------- 1 file changed, 11 insertions(+), 45 deletions(-) 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 <