Switch to latest-1.21
[functest-kubernetes.git] / docker / cnf / Dockerfile
index 60e0cfb..a0fc1f9 100644 (file)
@@ -1,11 +1,11 @@
 FROM opnfv/functest-kubernetes-core
 
-ARG K8S_TAG=latest
+ARG K8S_TAG=1.21
 ARG CNF_CONFORMANCE_TAG=v0.9.19
 ARG HELM_TAG=v3.3.1
 
 RUN apk --no-cache add --update wget curl libc6-compat && \
-    tag=$(curl -s https://storage.googleapis.com/kubernetes-release/release/$K8S_TAG.txt)  && \
+    tag=$(curl -s https://storage.googleapis.com/kubernetes-release/release/latest-$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 \
         --output /usr/local/bin/kubectl && \