Skip to content

Commit 70336f2

Browse files
upgrade go version to 1.25.3, kube bump to v1.35
The CI builder image uses Go 1.25.3, so we set go.mod to match. This fixes the build error: go: go.mod requires go >= 1.25.6 (running go 1.25.3; GOTOOLCHAIN=local)
1 parent 1881dab commit 70336f2

File tree

521 files changed

+21379
-12542
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

521 files changed

+21379
-12542
lines changed

.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.22
4+
tag: rhel-9-release-golang-1.25-openshift-4.22

.golangci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
version: "2"
23
run:
34
concurrency: 6
45
deadline: 15m
@@ -16,8 +17,8 @@ linters:
1617
#- gochecknoinits
1718
- goconst
1819
- gocritic
19-
- gofmt
20-
- goimports
20+
# - gofmt
21+
# - goimports
2122
- revive
2223
- gosec
2324
- govet

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use RHEL 9 as the primary builder base for the Machine Config Operator
2-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.24-openshift-4.22 AS rhel9-builder
2+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS rhel9-builder
33
ARG TAGS=""
44
WORKDIR /go/src/github.com/openshift/machine-config-operator
55
COPY . .
@@ -10,7 +10,7 @@ ENV GOMODCACHE="/go/rhel9/pkg/mod"
1010
RUN make install DESTDIR=./instroot-rhel9 && tar -C instroot-rhel9 -cf instroot-rhel9.tar .
1111

1212
# Add a RHEL 8 builder to compile the RHEL 8 compatible binaries
13-
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.24-openshift-4.22 AS rhel8-builder
13+
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.25-openshift-4.22 AS rhel8-builder
1414
ARG TAGS=""
1515
WORKDIR /go/src/github.com/openshift/machine-config-operator
1616
# Copy the RHEL 8 machine-config-daemon binary and rename

Dockerfile.rhel7

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# THIS FILE IS GENERATED FROM Dockerfile DO NOT EDIT
22
# Use RHEL 9 as the primary builder base for the Machine Config Operator
3-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.24-openshift-4.22 AS rhel9-builder
3+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS rhel9-builder
44
ARG TAGS=""
55
WORKDIR /go/src/github.com/openshift/machine-config-operator
66
COPY . .
@@ -11,7 +11,7 @@ ENV GOMODCACHE="/go/rhel9/pkg/mod"
1111
RUN make install DESTDIR=./instroot-rhel9 && tar -C instroot-rhel9 -cf instroot-rhel9.tar .
1212

1313
# Add a RHEL 8 builder to compile the RHEL 8 compatible binaries
14-
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.24-openshift-4.22 AS rhel8-builder
14+
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.25-openshift-4.22 AS rhel8-builder
1515
ARG TAGS=""
1616
WORKDIR /go/src/github.com/openshift/machine-config-operator
1717
# Copy the RHEL 8 machine-config-daemon binary and rename

go.mod

Lines changed: 64 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
module github.com/openshift/machine-config-operator
22

3-
go 1.24.0
3+
go 1.25.3
44

55
require (
66
github.com/Azure/ARO-RP v0.0.0-20250602035759-0693f32d5ccc
77
github.com/BurntSushi/toml v1.5.0
88
github.com/InVisionApp/go-health v2.1.0+incompatible
9-
github.com/Masterminds/semver/v3 v3.3.0
9+
github.com/Masterminds/semver/v3 v3.4.0
1010
github.com/ProtonMail/go-crypto v1.3.0
1111
github.com/apparentlymart/go-cidr v1.1.0
1212
github.com/ashcrow/osrelease v0.0.0-20180626175927-9b292693c55c
@@ -33,45 +33,46 @@ require (
3333
github.com/google/uuid v1.6.0
3434
github.com/imdario/mergo v0.3.16
3535
github.com/josephburnett/jd v1.9.2
36-
github.com/onsi/ginkgo/v2 v2.22.2
37-
github.com/onsi/gomega v1.36.2
36+
github.com/onsi/ginkgo/v2 v2.27.2
37+
github.com/onsi/gomega v1.38.2
3838
github.com/opencontainers/go-digest v1.0.0
3939
github.com/openshift-eng/openshift-tests-extension v0.0.0-20250916161632-d81c09058835
40-
github.com/openshift/api v0.0.0-20260107103503-6d35063ca179
40+
github.com/openshift/api v0.0.0-20260128000234-c16ec2bcf089
4141
github.com/openshift/client-go v0.0.0-20260108185524-48f4ccfc4e13
42-
github.com/openshift/library-go v0.0.0-20251015151611-6fc7a74b67c5
42+
github.com/openshift/library-go v0.0.0-20260128103731-28a799f65388
4343
github.com/openshift/runtime-utils v0.0.0-20230921210328-7bdb5b9c177b
44-
github.com/prometheus/client_golang v1.22.0
44+
github.com/prometheus/client_golang v1.23.2
4545
github.com/rs/zerolog v1.34.0
46-
github.com/spf13/cobra v1.9.1
47-
github.com/spf13/pflag v1.0.6
48-
github.com/stretchr/testify v1.10.0
46+
github.com/spf13/cobra v1.10.0
47+
github.com/spf13/pflag v1.0.9
48+
github.com/stretchr/testify v1.11.1
4949
github.com/tidwall/gjson v1.14.2
5050
github.com/tidwall/sjson v1.2.5
5151
github.com/vincent-petithory/dataurl v1.0.0
5252
github.com/vmware/govmomi v0.45.1
53-
golang.org/x/net v0.46.0
53+
golang.org/x/net v0.47.0
5454
golang.org/x/time v0.11.0
55-
google.golang.org/grpc v1.72.1
55+
google.golang.org/grpc v1.72.2
5656
gopkg.in/ini.v1 v1.67.0
57-
k8s.io/api v0.34.1
58-
k8s.io/apiextensions-apiserver v0.34.1
59-
k8s.io/apimachinery v0.34.1
60-
k8s.io/client-go v0.34.1
61-
k8s.io/code-generator v0.34.1
62-
k8s.io/component-base v0.34.1
63-
k8s.io/cri-api v0.34.1
64-
k8s.io/kubectl v0.34.1
65-
k8s.io/kubelet v0.34.1
66-
k8s.io/kubernetes v1.34.1
57+
k8s.io/api v0.35.0
58+
k8s.io/apiextensions-apiserver v0.35.0
59+
k8s.io/apimachinery v0.35.0
60+
k8s.io/client-go v0.35.0
61+
k8s.io/code-generator v0.35.0
62+
k8s.io/component-base v0.35.0
63+
k8s.io/cri-api v0.35.0
64+
k8s.io/kubectl v0.35.0
65+
k8s.io/kubelet v0.35.0
66+
k8s.io/kubernetes v1.35.0
6767
k8s.io/utils v0.0.0-20251002143259-bc988d571ff4
68-
sigs.k8s.io/controller-runtime v0.20.1
68+
sigs.k8s.io/controller-runtime v0.21.0
6969
sigs.k8s.io/controller-runtime/tools/setup-envtest v0.0.0-20240522175850-2e9781e9fc60
7070
)
7171

7272
require (
7373
4d63.com/gocheckcompilerdirectives v1.2.1 // indirect
7474
cel.dev/expr v0.24.0 // indirect
75+
cyphar.com/go-pathrs v0.2.1 // indirect
7576
github.com/4meepo/tagalign v1.3.4 // indirect
7677
github.com/Abirdcfly/dupword v0.1.3 // indirect
7778
github.com/Antonboom/testifylint v1.5.2 // indirect
@@ -99,14 +100,14 @@ require (
99100
github.com/ckaznocha/intrange v0.3.0 // indirect
100101
github.com/cloudflare/circl v1.6.0 // indirect
101102
github.com/container-storage-interface/spec v1.9.0 // indirect
102-
github.com/containerd/containerd/api v1.8.0 // indirect
103+
github.com/containerd/containerd/api v1.9.0 // indirect
103104
github.com/containerd/errdefs v1.0.0 // indirect
104105
github.com/containerd/errdefs/pkg v0.3.0 // indirect
105106
github.com/containerd/log v0.1.0 // indirect
106-
github.com/containerd/ttrpc v1.2.6 // indirect
107+
github.com/containerd/ttrpc v1.2.7 // indirect
107108
github.com/containerd/typeurl/v2 v2.2.3 // indirect
108109
github.com/cyberphone/json-canonicalization v0.0.0-20241213102144-19d51d7fe467 // indirect
109-
github.com/cyphar/filepath-securejoin v0.4.1 // indirect
110+
github.com/cyphar/filepath-securejoin v0.6.0 // indirect
110111
github.com/euank/go-kmsg-parser v2.0.0+incompatible // indirect
111112
github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f // indirect
112113
github.com/felixge/httpsnoop v1.0.4 // indirect
@@ -130,11 +131,11 @@ require (
130131
github.com/golangci/modinfo v0.3.4 // indirect
131132
github.com/golangci/plugin-module-register v0.1.1 // indirect
132133
github.com/google/btree v1.1.3 // indirect
133-
github.com/google/cadvisor v0.52.1 // indirect
134+
github.com/google/cadvisor v0.53.0 // indirect
134135
github.com/google/cel-go v0.26.0 // indirect
135136
github.com/google/gnostic-models v0.7.0 // indirect
136137
github.com/google/goterm v0.0.0-20190703233501-fc88cf888a3f // indirect
137-
github.com/google/pprof v0.0.0-20241210010833-40e02aabc2ad // indirect
138+
github.com/google/pprof v0.0.0-20250403155104-27863c87afa6 // indirect
138139
github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 // indirect
139140
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect
140141
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.1-0.20210315223345-82c243799c99 // indirect
@@ -164,13 +165,13 @@ require (
164165
github.com/oklog/ulid v1.3.1 // indirect
165166
github.com/onsi/ginkgo v1.16.5 // indirect
166167
github.com/opencontainers/cgroups v0.0.3 // indirect
167-
github.com/opencontainers/runc v1.2.6 // indirect
168-
github.com/opencontainers/selinux v1.12.0 // indirect
168+
github.com/opencontainers/runc v1.3.0 // indirect
169+
github.com/opencontainers/selinux v1.13.0 // indirect
169170
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
170171
github.com/quasilyte/go-ruleguard/dsl v0.3.22 // indirect
171172
github.com/raeperd/recvcheck v0.1.2 // indirect
172173
github.com/robfig/cron v1.2.0 // indirect
173-
github.com/rogpeppe/go-internal v1.13.1 // indirect
174+
github.com/rogpeppe/go-internal v1.14.1 // indirect
174175
github.com/russross/blackfriday/v2 v2.1.0 // indirect
175176
github.com/sagikazarmark/locafero v0.6.0 // indirect
176177
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 // indirect
@@ -192,40 +193,39 @@ require (
192193
github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 // indirect
193194
go-simpler.org/musttag v0.13.0 // indirect
194195
go-simpler.org/sloglint v0.7.2 // indirect
195-
go.etcd.io/etcd/api/v3 v3.6.4 // indirect
196-
go.etcd.io/etcd/client/pkg/v3 v3.6.4 // indirect
197-
go.etcd.io/etcd/client/v3 v3.6.4 // indirect
196+
go.etcd.io/etcd/api/v3 v3.6.5 // indirect
197+
go.etcd.io/etcd/client/pkg/v3 v3.6.5 // indirect
198+
go.etcd.io/etcd/client/v3 v3.6.5 // indirect
198199
go.mongodb.org/mongo-driver v1.14.0 // indirect
199200
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
200201
go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful v0.44.0 // indirect
201202
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.60.0 // indirect
202-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.59.0 // indirect
203-
go.opentelemetry.io/otel v1.35.0 // indirect
203+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 // indirect
204+
go.opentelemetry.io/otel v1.36.0 // indirect
204205
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.34.0 // indirect
205206
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.34.0 // indirect
206-
go.opentelemetry.io/otel/metric v1.35.0 // indirect
207-
go.opentelemetry.io/otel/sdk v1.34.0 // indirect
208-
go.opentelemetry.io/otel/trace v1.35.0 // indirect
207+
go.opentelemetry.io/otel/metric v1.36.0 // indirect
208+
go.opentelemetry.io/otel/sdk v1.36.0 // indirect
209+
go.opentelemetry.io/otel/trace v1.36.0 // indirect
209210
go.opentelemetry.io/proto/otlp v1.5.0 // indirect
210211
go.uber.org/atomic v1.11.0 // indirect
211212
go.uber.org/automaxprocs v1.6.0 // indirect
212213
go.yaml.in/yaml/v2 v2.4.3 // indirect
213214
go.yaml.in/yaml/v3 v3.0.4 // indirect
214-
golang.org/x/tools/go/expect v0.1.1-deprecated // indirect
215215
google.golang.org/genproto/googleapis/api v0.0.0-20250303144028-a0af3efb3deb // indirect
216-
google.golang.org/genproto/googleapis/rpc v0.0.0-20250313205543-e70fdf4c4cb4 // indirect
216+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250528174236-200df99c418a // indirect
217217
gopkg.in/DATA-DOG/go-sqlmock.v1 v1.3.0 // indirect
218-
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
218+
gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect
219219
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
220-
k8s.io/cli-runtime v0.32.1 // indirect
220+
k8s.io/cli-runtime v0.35.0 // indirect
221221
k8s.io/cloud-provider v0.0.0 // indirect
222-
k8s.io/component-helpers v0.32.1 // indirect
222+
k8s.io/component-helpers v0.35.0 // indirect
223223
k8s.io/controller-manager v0.32.1 // indirect
224224
k8s.io/cri-client v0.0.0 // indirect
225225
k8s.io/csi-translation-lib v0.0.0 // indirect
226-
k8s.io/dynamic-resource-allocation v0.0.0 // indirect
227-
k8s.io/gengo/v2 v2.0.0-20250604051438-85fd79dbfd9f // indirect
228-
k8s.io/kms v0.34.1 // indirect
226+
k8s.io/dynamic-resource-allocation v0.35.0 // indirect
227+
k8s.io/gengo/v2 v2.0.0-20250922181213-ec3ebc5fd46b // indirect
228+
k8s.io/kms v0.35.0 // indirect
229229
k8s.io/kube-scheduler v0.0.0 // indirect
230230
k8s.io/mount-utils v0.0.0 // indirect
231231
k8s.io/pod-security-admission v0.0.0 // indirect
@@ -267,7 +267,7 @@ require (
267267
github.com/daixiang0/gci v0.13.5 // indirect
268268
github.com/denis-tingaikin/go-header v0.5.0 // indirect
269269
github.com/docker/distribution v2.8.3+incompatible
270-
github.com/docker/docker v28.0.4+incompatible // indirect
270+
github.com/docker/docker v28.2.2+incompatible // indirect
271271
github.com/docker/docker-credential-helpers v0.9.3 // indirect
272272
github.com/docker/go-connections v0.5.0 // indirect
273273
github.com/docker/go-units v0.5.0 // indirect
@@ -351,9 +351,9 @@ require (
351351
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
352352
github.com/polyfloyd/go-errorlint v1.7.0 // indirect
353353
github.com/proglottis/gpgme v0.1.4 // indirect
354-
github.com/prometheus/client_model v0.6.1 // indirect
355-
github.com/prometheus/common v0.62.0 // indirect
356-
github.com/prometheus/procfs v0.15.1 // indirect
354+
github.com/prometheus/client_model v0.6.2 // indirect
355+
github.com/prometheus/common v0.66.1 // indirect
356+
github.com/prometheus/procfs v0.16.1 // indirect
357357
github.com/quasilyte/go-ruleguard v0.4.3-0.20240823090925-0fe6f58b47b1 // indirect
358358
github.com/quasilyte/gogrep v0.5.0 // indirect
359359
github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727 // indirect
@@ -394,25 +394,25 @@ require (
394394
go.uber.org/multierr v1.11.0 // indirect
395395
go.uber.org/zap v1.27.0 // indirect
396396
go4.org v0.0.0-20200104003542-c7e774b10ea0 // indirect
397-
golang.org/x/crypto v0.43.0
397+
golang.org/x/crypto v0.45.0
398398
golang.org/x/exp v0.0.0-20250103183323-7d7fa50e5329
399399
golang.org/x/exp/typeparams v0.0.0-20241108190413-2d47ceb2692f // indirect
400-
golang.org/x/mod v0.28.0 // indirect
401-
golang.org/x/oauth2 v0.29.0 // indirect
402-
golang.org/x/sync v0.17.0
403-
golang.org/x/sys v0.37.0
404-
golang.org/x/term v0.36.0 // indirect
405-
golang.org/x/text v0.30.0 // indirect
406-
golang.org/x/tools v0.37.0 // indirect
407-
google.golang.org/protobuf v1.36.6 // indirect
400+
golang.org/x/mod v0.29.0 // indirect
401+
golang.org/x/oauth2 v0.30.0 // indirect
402+
golang.org/x/sync v0.18.0
403+
golang.org/x/sys v0.38.0
404+
golang.org/x/term v0.37.0 // indirect
405+
golang.org/x/text v0.31.0 // indirect
406+
golang.org/x/tools v0.38.0 // indirect
407+
google.golang.org/protobuf v1.36.8 // indirect
408408
gopkg.in/inf.v0 v0.9.1 // indirect
409409
gopkg.in/yaml.v2 v2.4.0
410410
gopkg.in/yaml.v3 v3.0.1
411411
honnef.co/go/tools v0.5.1 // indirect
412-
k8s.io/apiserver v0.34.1
412+
k8s.io/apiserver v0.35.0
413413
k8s.io/klog/v2 v2.130.1
414414
k8s.io/kube-aggregator v0.34.1 // indirect
415-
k8s.io/kube-openapi v0.0.0-20250710124328-f3f2b991d03b // indirect
415+
k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 // indirect
416416
mvdan.cc/gofumpt v0.7.0 // indirect
417417
mvdan.cc/unparam v0.0.0-20240528143540-8a5130ca722f // indirect
418418
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect
@@ -455,3 +455,5 @@ replace (
455455
k8s.io/sample-cli-plugin => github.com/openshift/kubernetes/staging/src/k8s.io/sample-cli-plugin v0.0.0-20251028145634-9e794b89909a
456456
k8s.io/sample-controller => github.com/openshift/kubernetes/staging/src/k8s.io/sample-controller v0.0.0-20251028145634-9e794b89909a
457457
)
458+
459+
replace github.com/opencontainers/runc => github.com/opencontainers/runc v1.2.3

0 commit comments

Comments
 (0)