aboutsummaryrefslogtreecommitdiffstats
path: root/docker/healthcheck/Dockerfile
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2022-09-30 11:30:05 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2022-09-30 11:30:05 +0200
commit5d1eb2274bc28b77d761e0ce89bb3c3f2a47d787 (patch)
tree51597e8e864accf0fbc427ed80ef776f91e6f584 /docker/healthcheck/Dockerfile
parent0b09d457357cd8ce909fdbd08cae2e35ac585767 (diff)
Get the right K8s e2e version
Change-Id: I4eaba8b410061e4d401319a020770d78b6990a85 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'docker/healthcheck/Dockerfile')
-rw-r--r--docker/healthcheck/Dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/docker/healthcheck/Dockerfile b/docker/healthcheck/Dockerfile
index 7f8c1009..de8381dd 100644
--- a/docker/healthcheck/Dockerfile
+++ b/docker/healthcheck/Dockerfile
@@ -1,7 +1,8 @@
FROM opnfv/functest-kubernetes-core:v1.24
+ARG K8S_TAG=1.24
RUN apk --no-cache add --update curl libc6-compat && \
- tag=$(curl -s https://storage.googleapis.com/kubernetes-release/release/latest.txt) && \
+ tag=$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable-$K8S_TAG.txt) && \
case $(uname -m) in armv7l) arch=arm;; aarch64) arch=arm64;; x86_64) arch=amd64;; esac && \
curl https://storage.googleapis.com/kubernetes-release/release/$tag/bin/linux/$arch/kubectl \
-s --output /usr/local/bin/kubectl && \