Skip to content

Commit c59d442

Browse files
authored
ACM-29460: Upgrade go to v1.25.7 to mitigate CVE-2025-61726 (#839)
Includes: - Upgrade setup-envtest to release-0.22 and k8s to 1.30 to match the newer go version - Updating go.mod files to 1.25.7 - Updating docker files to use Go 1.25's builder image - Updating ci-operator file to use Go 1.25 as a base
1 parent 0983bd7 commit c59d442

7 files changed

Lines changed: 8 additions & 10 deletions

File tree

.ci-operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
build_root_image:
22
name: release
33
namespace: openshift
4-
tag: rhel-9-release-golang-1.24-openshift-4.21
4+
tag: rhel-9-release-golang-1.25-openshift-4.22

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM registry.access.redhat.com/ubi9/go-toolset:1.24 AS builder
2+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS builder
33

44
USER 0
55

Dockerfile.rhtap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.24 as builder
2+
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.25 as builder
33

44
WORKDIR /workspace
55
COPY . .

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ NAMESPACE ?= cluster-api-provider-agent
4141
WATCH_NAMESPACE ?= ""
4242
AGENTS_NAMESPACE ?= ""
4343
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
44-
ENVTEST_K8S_VERSION = 1.21
44+
ENVTEST_K8S_VERSION = 1.30
4545

4646
# Runtime CLI to use for building and pushing images
4747
RUNTIME ?= docker
@@ -155,7 +155,7 @@ kustomize: ## Download kustomize locally if necessary.
155155

156156
ENVTEST = $(shell pwd)/bin/setup-envtest
157157
envtest: ## Download envtest-setup locally if necessary.
158-
$(call go-get-tool,$(ENVTEST),sigs.k8s.io/controller-runtime/tools/setup-envtest@v0.0.0-20240315194348-5aaf1190f880)
158+
$(call go-get-tool,$(ENVTEST),sigs.k8s.io/controller-runtime/tools/setup-envtest@release-0.22)
159159

160160
MOCKGEN = $(shell pwd)/bin/mockgen
161161
mockgen: ## Download mockgen locally if necessary.

api/go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/openshift/cluster-api-provider-agent/api
22

3-
go 1.24.0
4-
5-
toolchain go1.24.2
3+
go 1.25.7
64

75
require (
86
github.com/openshift/api v0.0.0-20240830023148-b7d0481c9094

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/openshift/cluster-api-provider-agent
22

3-
go 1.24.6
3+
go 1.25.7
44

55
// Versions to be held for v1beta1
66
// sigs.k8s.io/controller-runtime on v0.11.x

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ github.com/openshift/assisted-service/api/v1beta1
217217
github.com/openshift/assisted-service/models
218218
github.com/openshift/assisted-service/models/validations
219219
# github.com/openshift/cluster-api-provider-agent/api v0.0.0-20250324094320-633957e81ebd => ./api
220-
## explicit; go 1.24.0
220+
## explicit; go 1.25.7
221221
github.com/openshift/cluster-api-provider-agent/api/v1alpha1
222222
github.com/openshift/cluster-api-provider-agent/api/v1beta1
223223
# github.com/openshift/custom-resource-status v1.1.3-0.20220503160415-f2fdb4999d87

0 commit comments

Comments
 (0)