From f82df062bed465fd6a81476260eff28741e61dc4 Mon Sep 17 00:00:00 2001 From: Michael Valdron Date: Fri, 30 May 2025 12:03:38 -0400 Subject: [PATCH 1/6] bump go.mod to go 1.22 Signed-off-by: Michael Valdron --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 1931c75..d9008b0 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/devfile/registry-operator -go 1.21 +go 1.22 require ( github.com/devfile/registry-support/index/generator v0.0.0-20240816133831-cf509ccd1a6b From c0570378537832a28cfc1fbd04d425284aed7c1f Mon Sep 17 00:00:00 2001 From: Michael Valdron Date: Fri, 30 May 2025 12:07:10 -0400 Subject: [PATCH 2/6] use ubi9 base images with go-toolset 1.22.9 builder Signed-off-by: Michael Valdron --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9585598..3778fde 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,8 +14,9 @@ # limitations under the License. # Build the manager binary -FROM golang:1.21@sha256:b405b620c7b53ef64695c7da7c8396f411f381c1eb7da6713c585dd7eca1559b as builder +FROM registry.access.redhat.com/ubi9/go-toolset:1.22.9 as builder ARG TARGETARCH=amd64 +USER root WORKDIR /workspace # Copy the Go Modules manifests @@ -41,9 +42,8 @@ ENV ENABLE_WEBHOOKS=${ENABLE_WEBHOOKS} ARG ENABLE_WEBHOOK_HTTP2=false ENV ENABLE_WEBHOOK_HTTP2=${ENABLE_WEBHOOK_HTTP2} -# Use distroless as minimal base image to package the manager binary -# Refer to https://github.com/GoogleContainerTools/distroless for more details -FROM gcr.io/distroless/static:nonroot-${TARGETARCH} +# Use ubi-micro as minimal base image to package the manager binary +FROM registry.access.redhat.com/ubi9/ubi-micro:9.6 WORKDIR / COPY --from=builder /workspace/manager . USER 1001 From 63a7e1d2d3e38d04c773109017ca360d94a03e01 Mon Sep 17 00:00:00 2001 From: Michael Valdron Date: Fri, 30 May 2025 12:12:54 -0400 Subject: [PATCH 3/6] update go version requirement to 1.22 under README Signed-off-by: Michael Valdron --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d234636..b1b21d2 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ security setups. ### Development -- Go 1.21.x +- Go 1.22.x - Docker / Podman - Operator SDK 1.28.x From a337245c0d01a49abdffce04bcfcd03a7610af84 Mon Sep 17 00:00:00 2001 From: Michael Valdron Date: Fri, 30 May 2025 12:14:23 -0400 Subject: [PATCH 4/6] add Go badge to README Signed-off-by: Michael Valdron --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b1b21d2..bc8e3e9 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@