From 68a076bfa25385b35462b5903c4c393eb4118d64 Mon Sep 17 00:00:00 2001 From: Andrii Ostapenko Date: Wed, 9 Jun 2021 22:56:15 -0500 Subject: [PATCH] Pin kubectl version in toolbox image According to [0] we should not keep client too far from server, though now server is v1.18.6 and client v1.21.1 [0] https://kubernetes.io/releases/version-skew-policy/#kubectl Change-Id: If4fb773a42356da42376c27997faf22172dd79ed Signed-off-by: Andrii Ostapenko --- krm-functions/toolbox/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/krm-functions/toolbox/Dockerfile b/krm-functions/toolbox/Dockerfile index d40a15c64..501fb3e8c 100644 --- a/krm-functions/toolbox/Dockerfile +++ b/krm-functions/toolbox/Dockerfile @@ -3,6 +3,7 @@ ARG PLUGINS_BUILD_IMAGE=alpine:3.12.0 ARG PLUGINS_RELEASE_IMAGE=alpine:3.12.0 FROM ${PLUGINS_BUILD_IMAGE} as ctls ARG GOPROXY="" +ARG K8S_VERSION=v1.18.6 RUN apk update && apk add curl # Inject custom root certificate authorities if needed @@ -12,7 +13,7 @@ RUN apk update && apk add curl COPY ./certs/* /usr/local/share/ca-certificates/ RUN update-ca-certificates -RUN curl -L "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl" \ +RUN curl -L "https://storage.googleapis.com/kubernetes-release/release/${K8S_VERSION}/bin/linux/amd64/kubectl" \ -o /kubectl RUN curl -L "https://github.com/projectcalico/calicoctl/releases/download/v3.18.1/calicoctl" \ -o /calicoctl