diff --git a/e2e/get_tools.sh b/e2e/get_tools.sh index b0efbe13e..3e4aef0b6 100755 --- a/e2e/get_tools.sh +++ b/e2e/get_tools.sh @@ -5,7 +5,7 @@ if [ ! -d bin ]; then mkdir bin fi -curl -Lo ./bin/kind "https://github.com/kubernetes-sigs/kind/releases/download/v0.12.0/kind-$(uname)-amd64" +curl -Lo ./bin/kind "https://github.com/kubernetes-sigs/kind/releases/download/v0.20.0/kind-$(uname)-amd64" chmod +x ./bin/kind curl -Lo ./bin/kubectl https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl chmod +x ./bin/kubectl diff --git a/e2e/setup_cluster.sh b/e2e/setup_cluster.sh index c89bddb28..3a4ab806d 100755 --- a/e2e/setup_cluster.sh +++ b/e2e/setup_cluster.sh @@ -11,6 +11,10 @@ OCI_BIN="${OCI_BIN:-docker}" # Acceptable values are `multus-daemonset.yml`. `multus-daemonset-thick.yml`. # Defaults to `multus-daemonset-thick.yml`. MULTUS_MANIFEST="${MULTUS_MANIFEST:-multus-daemonset-thick.yml}" +# define the dockerfile to build multus. +# Acceptable values are `Dockerfile`. `Dockerfile.thick`. +# Defaults to `Dockerfile.thick`. +MULTUS_DOCKERFILE="${MULTUS_MANIFEST:-Dockerfile.thick}" kind_network='kind' reg_name='kind-registry' @@ -19,7 +23,7 @@ running="$($OCI_BIN inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || if [ "${running}" != 'true' ]; then # run registry and push the multus image $OCI_BIN run -d --restart=always -p "${reg_port}:5000" --name "${reg_name}" registry:2 - $OCI_BIN build -t localhost:5000/multus:e2e -f ../images/Dockerfile .. + $OCI_BIN build -t localhost:5000/multus:e2e -f ../images/${MULTUS_DOCKERFILE} .. $OCI_BIN push localhost:5000/multus:e2e fi reg_host="${reg_name}" diff --git a/e2e/templates/cni-install.yml.j2 b/e2e/templates/cni-install.yml.j2 index 1d57fd4d4..06160451e 100644 --- a/e2e/templates/cni-install.yml.j2 +++ b/e2e/templates/cni-install.yml.j2 @@ -7,9 +7,9 @@ metadata: data: install_cni.sh: | cd /tmp - wget https://github.com/containernetworking/plugins/releases/download/v1.1.1/cni-plugins-linux-amd64-v1.1.1.tgz + wget https://github.com/containernetworking/plugins/releases/download/v1.4.0/cni-plugins-linux-amd64-v1.4.0.tgz cd /host/opt/cni/bin - tar xvfzp /tmp/cni-plugins-linux-amd64-v1.1.1.tgz + tar xvfzp /tmp/cni-plugins-linux-amd64-v1.4.0.tgz sleep infinite --- apiVersion: apps/v1