Use Kubernetes 1.21.4 for API backward compatibility

This commit is contained in:
Hossein Pursultani 2021-11-16 18:32:53 +11:00 committed by DJ Mountney
parent 6e544cfc63
commit ff2ed66c6a

View file

@ -49,7 +49,7 @@ FROM golang:${GOLANG_VERSION}-alpine${ALPINE_VERSION} as build
LABEL maintainer="GitLab Distribution Team" \
description="Build base image for the GitLab Operator project."
ARG KUBERNETES_VERSION=1.22.1
ARG KUBERNETES_VERSION=1.21.4
ARG KUBEBUILDER_VERSION=3.2.0
ARG YQ_VERSION=4.7.0
ARG HELM_VERSION=3.5.2
@ -71,7 +71,7 @@ RUN mkdir -p /usr/local/kubebuilder/bin \
&& curl --retry 6 -Ls -o /usr/local/kubebuilder/bin/kubebuilder \
https://github.com/kubernetes-sigs/kubebuilder/releases/download/v${KUBEBUILDER_VERSION}/kubebuilder_linux_amd64 \
&& curl --retry 6 -Ls "https://go.kubebuilder.io/test-tools/${KUBERNETES_VERSION}/linux/amd64" | tar -xz -C /usr/local/kubebuilder --strip-components=1 \
&& chmod +x /usr/local/kubebuilder/bin/* \
&& chmod +x /usr/local/kubebuilder/bin/* \
&& ln -sfv /usr/local/kubebuilder/bin/* /usr/local/bin
# Yq