Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions images/calico-go-build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ FROM registry.access.redhat.com/ubi8/ubi:latest AS ubi
ARG TARGETARCH

ARG CONTAINERREGISTRY_VERSION=v0.20.7
ARG CONTROLLER_TOOLS_VERSION=v0.18.0
ARG CONTROLLER_TOOLS_VERSION=v0.20.0
ARG GO_LINT_VERSION=v2.6.2
ARG MOCKERY_VERSION=3.5.5
ARG PROTOC_VERSION=33.1
Expand Down Expand Up @@ -158,11 +158,10 @@ RUN set -eux; \
# Install Go utilities

# controller-gen is used for generating CRD files.
COPY patches/controller-gen-Support-Calico-NumOrString-types.patch /tmp/controller-tools/calico.patch

RUN set -eux; \
mkdir -p /tmp/controller-tools; \
curl -sfL https://github.com/kubernetes-sigs/controller-tools/archive/refs/tags/${CONTROLLER_TOOLS_VERSION}.tar.gz | tar xz --strip-components 1 -C /tmp/controller-tools; \
cd /tmp/controller-tools && patch -p1 < calico.patch && CGO_ENABLED=0 go build -o /usr/local/bin/controller-gen -v -buildvcs=false \
cd /tmp/controller-tools && CGO_ENABLED=0 go build -o /usr/local/bin/controller-gen -v -buildvcs=false \
Comment thread
hjiawei marked this conversation as resolved.
Outdated
-ldflags "-X sigs.k8s.io/controller-tools/pkg/version.version=${CONTROLLER_TOOLS_VERSION} -s -w" ./cmd/controller-gen; \
rm -fr /tmp/controller-tools

Expand Down

This file was deleted.