diff --git a/images/kubekins-e2e/Dockerfile b/images/kubekins-e2e/Dockerfile index 2848031fcea6..05f84e35672e 100644 --- a/images/kubekins-e2e/Dockerfile +++ b/images/kubekins-e2e/Dockerfile @@ -97,6 +97,14 @@ RUN if [ -n "${KIND_VERSION}" ]; then \ chmod +x /usr/local/bin/kind; \ fi +# install kubetest2 binaries if a version is provided +ARG KUBETEST2_VERSION +RUN if [ -n "${KUBETEST2_VERSION}" ]; then \ + wget -q -O /usr/local/bin/kubetest2.tgz https://storage.googleapis.com/k8s-staging-kubetest2/${KUBETEST2_VERSION}/linux-amd64.tgz && \ + tar -xzf /usr/local/bin/kubetest2.tgz \ + rm -f /usr/local/bin/kubetest2.tgz + fi + # configure dockerd to use mirror.gcr.io # per instructions at https://cloud.google.com/container-registry/docs/pulling-cached-images ARG DOCKER_REGISTRY_MIRROR_URL=https://mirror.gcr.io diff --git a/images/kubekins-e2e/variants.yaml b/images/kubekins-e2e/variants.yaml index b54dfc8b74fe..3c05094dace7 100644 --- a/images/kubekins-e2e/variants.yaml +++ b/images/kubekins-e2e/variants.yaml @@ -5,6 +5,7 @@ variants: K8S_RELEASE: stable BAZEL_VERSION: 3.4.1 OLD_BAZEL_VERSION: 2.2.0 + KUBETEST2_VERSION: latest UPGRADE_DOCKER: 'true' go-canary: CONFIG: go-canary