Point directly to kubebuilder release artifact URL

Points directly to the kubebuilder release artifact URL in GitHub,
rather than going through `go.kubebuilder.io`. Its redirection, along
with the artifact names between versions, has changed and become
unstable. This approach gives us a more clear target for the download
and will make it easier to patch in the future when newer versions have
different filename conventions.
This commit is contained in:
Mitchell Nielsen 2021-09-02 12:12:20 -05:00
parent b5a4afe94d
commit b814f0e985

View file

@ -37,7 +37,7 @@ RUN go get -u \
golang.org/x/lint/golint
# Kubebuilder
RUN curl --retry 6 -Ls https://go.kubebuilder.io/dl/${KUBEBUILDER_VERSION}/linux/amd64 | tar -xz -C /tmp/ \
RUN curl --retry 6 -Ls https://github.com/kubernetes-sigs/kubebuilder/releases/download/v${KUBEBUILDER_VERSION}/kubebuilder_${KUBEBUILDER_VERSION}_linux_amd64.tar.gz | tar -xz -C /tmp/ \
&& mv /tmp/kubebuilder_${KUBEBUILDER_VERSION}_linux_amd64 /usr/local/kubebuilder \
&& ln -sfv /usr/local/kubebuilder/bin/* /usr/local/bin