Skip to content

Commit c1d277b

Browse files
committed
Bump Kubernetes to 1.36.1 and OCP to 5.0
go.mod: Bump Kubernetes modules to v0.36.1, move to Go 1.26, refresh OpenShift dependencies, and temporarily replace openshift/library-go with github.com/jubittajohn/library-go from openshift/library-go#2171 because Kubernetes 1.36 added HasSyncedChecker() and current library-go refs do not implement it in the fake informer. This keeps vendor generated by go mod vendor so verify-deps can reproduce it. .ci-operator.yaml: Use openshift/release:rhel-9-release-golang-1.26-openshift-5.0 so CI runs with the matching Go 1.26/OCP 5.0 build root. Dockerfile: Use the OCP 5.0 Go 1.26 builder and OCP 5.0 runtime base images for the updated dependency stack.
1 parent bea98c0 commit c1d277b

1,498 files changed

Lines changed: 94925 additions & 77026 deletions

File tree

Some content is hidden

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

.ci-operator.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
build_root_image:
22
name: release
33
namespace: openshift
4-
tag: rhel-9-release-golang-1.25-openshift-4.22
4+
# Keep CNO on the release build-root stream while moving to the Go 1.26/OCP 5.0 tag.
5+
tag: rhel-9-release-golang-1.26-openshift-5.0

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS builder
1+
# Kubernetes 1.36 requires Go 1.26; use the matching OCP 5.0 builder image.
2+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.26-openshift-5.0 AS builder
23
WORKDIR /go/src/github.com/openshift/cluster-network-operator
34
COPY . .
45
RUN hack/build-go.sh
56

6-
FROM registry.ci.openshift.org/ocp/4.22:base-rhel9
7+
# Keep the runtime base aligned with the OCP 5.0 release payload.
8+
FROM registry.ci.openshift.org/ocp/5.0:base-rhel9
79
COPY --from=builder /go/src/github.com/openshift/cluster-network-operator/cluster-network-operator /usr/bin/
810
COPY --from=builder /go/src/github.com/openshift/cluster-network-operator/cluster-network-check-endpoints /usr/bin/
911
COPY --from=builder /go/src/github.com/openshift/cluster-network-operator/cluster-network-check-target /usr/bin/

go.mod

Lines changed: 68 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,38 @@
11
module github.com/openshift/cluster-network-operator
22

3-
go 1.25.0
3+
go 1.26.0
44

55
require (
66
github.com/Masterminds/semver v1.5.0
77
github.com/Masterminds/sprig/v3 v3.2.3
88
github.com/containernetworking/cni v0.8.0
99
github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32
1010
github.com/go-bindata/go-bindata v3.1.2+incompatible
11-
github.com/onsi/gomega v1.39.1
12-
github.com/openshift/build-machinery-go v0.0.0-20251023084048-5d77c1a5e5af
11+
github.com/onsi/gomega v1.40.0
12+
github.com/openshift/build-machinery-go v0.0.0-20260427155009-b879704ce51f
1313
github.com/pkg/errors v0.9.1
1414
github.com/prometheus/client_golang v1.23.2
1515
github.com/spf13/cobra v1.10.2
1616
github.com/spf13/pflag v1.0.10
1717
github.com/stretchr/testify v1.11.1
1818
github.com/vishvananda/netlink v1.1.0
1919
github.com/vishvananda/netns v0.0.0-20200728191858-db3c7e526aae // indirect
20-
golang.org/x/net v0.51.0
20+
golang.org/x/net v0.55.0
2121
gopkg.in/yaml.v2 v2.4.0
22-
k8s.io/api v0.35.2
23-
k8s.io/apimachinery v0.36.0-alpha.2
24-
k8s.io/code-generator v0.35.2
25-
k8s.io/component-base v0.35.2
26-
k8s.io/klog/v2 v2.130.1
27-
k8s.io/kube-proxy v0.35.2
28-
k8s.io/utils v0.0.0-20260210185600-b8788abfbbc2
29-
sigs.k8s.io/controller-runtime v0.23.1
22+
k8s.io/api v0.36.1
23+
k8s.io/apimachinery v0.36.1
24+
k8s.io/code-generator v0.36.1
25+
k8s.io/component-base v0.36.1
26+
k8s.io/klog/v2 v2.140.0
27+
k8s.io/kube-proxy v0.36.1
28+
k8s.io/utils v0.0.0-20260507154919-ff6756f316d2
29+
sigs.k8s.io/controller-runtime v0.24.1
3030
)
3131

32+
// Use openshift/library-go PR #2171 until it merges, because it carries the
33+
// Kubernetes 1.36 HasSyncedChecker fake informer fix and Go 1.26 vet fixes.
34+
replace github.com/openshift/library-go => github.com/jubittajohn/library-go v0.0.0-20260529005742-3c9df83aa03b
35+
3236
require (
3337
github.com/Masterminds/goutils v1.1.1 // indirect
3438
github.com/NYTimes/gziphandler v1.1.1 // indirect
@@ -39,16 +43,15 @@ require (
3943
github.com/coreos/go-systemd/v22 v22.7.0 // indirect
4044
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
4145
github.com/felixge/httpsnoop v1.0.4 // indirect
42-
github.com/fsnotify/fsnotify v1.9.0 // indirect
46+
github.com/fsnotify/fsnotify v1.10.1 // indirect
4347
github.com/go-logr/logr v1.4.3 // indirect
44-
github.com/go-openapi/jsonpointer v0.22.5 // indirect
48+
github.com/go-openapi/jsonpointer v0.23.1 // indirect
4549
github.com/go-openapi/jsonreference v0.21.5 // indirect
46-
github.com/go-openapi/swag v0.25.5 // indirect
50+
github.com/go-openapi/swag v0.26.0 // indirect
4751
github.com/gogo/protobuf v1.3.2 // indirect
4852
github.com/golang/protobuf v1.5.4 // indirect
4953
github.com/google/go-cmp v0.7.0 // indirect
5054
github.com/google/uuid v1.6.0 // indirect
51-
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.1-0.20210315223345-82c243799c99 // indirect
5255
github.com/huandu/xstrings v1.4.0 // indirect
5356
github.com/imdario/mergo v0.3.16 // indirect
5457
github.com/inconshreveable/mousetrap v1.1.0 // indirect
@@ -61,7 +64,7 @@ require (
6164
github.com/pkg/profile v1.7.0 // indirect
6265
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
6366
github.com/prometheus/client_model v0.6.2 // indirect
64-
github.com/prometheus/common v0.67.5 // indirect
67+
github.com/prometheus/common v0.68.0 // indirect
6568
github.com/prometheus/procfs v0.20.1 // indirect
6669
github.com/robfig/cron v1.2.0 // indirect
6770
github.com/sirupsen/logrus v1.9.4 // indirect
@@ -76,88 +79,91 @@ require (
7679
go.opentelemetry.io/otel/trace v1.41.0 // indirect
7780
go.opentelemetry.io/proto/otlp v1.9.0 // indirect
7881
go.uber.org/multierr v1.11.0 // indirect
79-
go.uber.org/zap v1.27.1 // indirect
80-
golang.org/x/crypto v0.48.0 // indirect
81-
golang.org/x/mod v0.33.0 // indirect
82-
golang.org/x/oauth2 v0.35.0 // indirect
83-
golang.org/x/sync v0.19.0 // indirect
84-
golang.org/x/sys v0.41.0 // indirect
85-
golang.org/x/term v0.40.0 // indirect
86-
golang.org/x/text v0.34.0 // indirect
87-
golang.org/x/time v0.14.0 // indirect
88-
golang.org/x/tools v0.42.0 // indirect
82+
go.uber.org/zap v1.28.0 // indirect
83+
golang.org/x/crypto v0.51.0 // indirect
84+
golang.org/x/mod v0.36.0 // indirect
85+
golang.org/x/oauth2 v0.36.0 // indirect
86+
golang.org/x/sync v0.20.0 // indirect
87+
golang.org/x/sys v0.45.0 // indirect
88+
golang.org/x/term v0.43.0 // indirect
89+
golang.org/x/text v0.37.0 // indirect
90+
golang.org/x/time v0.15.0 // indirect
91+
golang.org/x/tools v0.45.0 // indirect
8992
gomodules.xyz/jsonpatch/v2 v2.5.0 // indirect
90-
google.golang.org/grpc v1.79.1 // indirect
91-
google.golang.org/protobuf v1.36.11 // indirect
93+
google.golang.org/grpc v1.80.0 // indirect
94+
google.golang.org/protobuf v1.36.12-0.20260120151049-f2248ac996af // indirect
9295
gopkg.in/inf.v0 v0.9.1 // indirect
9396
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
9497
gopkg.in/yaml.v3 v3.0.1 // indirect
95-
k8s.io/kube-openapi v0.0.0-20260127142750-a19766b6e2d4 // indirect
96-
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.34.0 // indirect
98+
k8s.io/kube-openapi v0.0.0-20260520065146-aa012df4f4af // indirect
99+
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.35.0 // indirect
97100
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect
98101
sigs.k8s.io/kube-storage-version-migrator v0.0.6-0.20230721195810-5c8923c5ff96 // indirect
99102
sigs.k8s.io/yaml v1.6.0 // indirect
100103
)
101104

102105
require (
103-
github.com/openshift/api v0.0.0-20260320151444-324a1bcb9f55
104-
github.com/openshift/client-go v0.0.0-20260320040014-4b5fc2cdad98
105-
github.com/openshift/library-go v0.0.0-20260303171201-5d9eb6295ff6
106+
github.com/openshift/api v0.0.0-20260528061300-9f553042f9ae
107+
github.com/openshift/client-go v0.0.0-20260512113608-deb4dc54551a
108+
github.com/openshift/library-go v0.0.0-20260528084301-c7d432293c13
106109
github.com/openshift/machine-config-operator v0.0.1-0.20250724162154-ab14c8e2843b
107-
k8s.io/apiextensions-apiserver v0.35.2
108-
k8s.io/client-go v0.35.2
109-
sigs.k8s.io/controller-tools v0.20.1
110+
k8s.io/apiextensions-apiserver v0.36.1
111+
k8s.io/client-go v0.36.1
112+
sigs.k8s.io/controller-tools v0.21.0
110113
)
111114

112115
require (
113116
cel.dev/expr v0.25.1 // indirect
114-
github.com/Masterminds/semver/v3 v3.4.0 // indirect
117+
github.com/Masterminds/semver/v3 v3.5.0 // indirect
115118
github.com/antlr4-go/antlr/v4 v4.13.1 // indirect
116119
github.com/cenkalti/backoff/v5 v5.0.3 // indirect
117120
github.com/emicklei/go-restful/v3 v3.13.0 // indirect
118121
github.com/evanphx/json-patch/v5 v5.9.11 // indirect
119-
github.com/fatih/color v1.18.0 // indirect
122+
github.com/fatih/color v1.19.0 // indirect
120123
github.com/felixge/fgprof v0.9.4 // indirect
121-
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
124+
github.com/fxamacker/cbor/v2 v2.9.2 // indirect
122125
github.com/go-logr/stdr v1.2.2 // indirect
123-
github.com/go-openapi/swag/cmdutils v0.25.5 // indirect
124-
github.com/go-openapi/swag/conv v0.25.5 // indirect
125-
github.com/go-openapi/swag/fileutils v0.25.5 // indirect
126-
github.com/go-openapi/swag/jsonname v0.25.5 // indirect
127-
github.com/go-openapi/swag/jsonutils v0.25.5 // indirect
128-
github.com/go-openapi/swag/loading v0.25.5 // indirect
129-
github.com/go-openapi/swag/mangling v0.25.5 // indirect
130-
github.com/go-openapi/swag/netutils v0.25.5 // indirect
131-
github.com/go-openapi/swag/stringutils v0.25.5 // indirect
132-
github.com/go-openapi/swag/typeutils v0.25.5 // indirect
133-
github.com/go-openapi/swag/yamlutils v0.25.5 // indirect
126+
github.com/go-openapi/swag/cmdutils v0.26.0 // indirect
127+
github.com/go-openapi/swag/conv v0.26.0 // indirect
128+
github.com/go-openapi/swag/fileutils v0.26.0 // indirect
129+
github.com/go-openapi/swag/jsonname v0.26.0 // indirect
130+
github.com/go-openapi/swag/jsonutils v0.26.0 // indirect
131+
github.com/go-openapi/swag/loading v0.26.0 // indirect
132+
github.com/go-openapi/swag/mangling v0.26.0 // indirect
133+
github.com/go-openapi/swag/netutils v0.26.0 // indirect
134+
github.com/go-openapi/swag/stringutils v0.26.0 // indirect
135+
github.com/go-openapi/swag/typeutils v0.26.0 // indirect
136+
github.com/go-openapi/swag/yamlutils v0.26.0 // indirect
134137
github.com/gobuffalo/flect v1.0.3 // indirect
135-
github.com/google/btree v1.1.3 // indirect
136138
github.com/google/cel-go v0.27.0 // indirect
137139
github.com/google/gnostic-models v0.7.1 // indirect
138140
github.com/google/pprof v0.0.0-20260115054156-294ebfa9ad83 // indirect
141+
github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.1.0 // indirect
142+
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.3.3 // indirect
139143
github.com/grpc-ecosystem/grpc-gateway/v2 v2.28.0 // indirect
140144
github.com/kylelemons/godebug v1.1.0 // indirect
141-
github.com/mattn/go-colorable v0.1.14 // indirect
142-
github.com/mattn/go-isatty v0.0.20 // indirect
143-
github.com/onsi/ginkgo/v2 v2.28.1 // indirect
145+
github.com/mattn/go-colorable v0.1.15 // indirect
146+
github.com/mattn/go-isatty v0.0.22 // indirect
147+
github.com/onsi/ginkgo/v2 v2.28.2 // indirect
148+
github.com/rogpeppe/go-internal v1.15.0 // indirect
144149
github.com/shopspring/decimal v1.3.1 // indirect
145150
github.com/spf13/cast v1.10.0 // indirect
146151
github.com/stretchr/objx v0.5.3 // indirect
147152
github.com/x448/float16 v0.8.4 // indirect
148153
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
149154
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.41.0 // indirect
150155
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.41.0 // indirect
151-
go.yaml.in/yaml/v2 v2.4.3 // indirect
156+
go.yaml.in/yaml/v2 v2.4.4 // indirect
152157
go.yaml.in/yaml/v3 v3.0.4 // indirect
153-
golang.org/x/exp v0.0.0-20260218203240-3dfff04db8fa // indirect
158+
golang.org/x/exp v0.0.0-20260529124908-c761662dc8c9 // indirect
154159
google.golang.org/genproto/googleapis/api v0.0.0-20260226221140-a57be14db171 // indirect
155160
google.golang.org/genproto/googleapis/rpc v0.0.0-20260226221140-a57be14db171 // indirect
156161
gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect
157-
k8s.io/apiserver v0.35.2 // indirect
158-
k8s.io/gengo/v2 v2.0.0-20251215205346-5ee0d033ba5b // indirect
159-
k8s.io/kms v0.35.2 // indirect
160-
k8s.io/kube-aggregator v0.35.1 // indirect
162+
k8s.io/apiserver v0.36.1 // indirect
163+
k8s.io/gengo/v2 v2.0.0-20260408192533-25e2208e0dc3 // indirect
164+
k8s.io/kms v0.36.1 // indirect
165+
k8s.io/kube-aggregator v0.36.1 // indirect
166+
k8s.io/streaming v0.36.1 // indirect
161167
sigs.k8s.io/randfill v1.0.0 // indirect
162-
sigs.k8s.io/structured-merge-diff/v6 v6.3.2 // indirect
168+
sigs.k8s.io/structured-merge-diff/v6 v6.4.0 // indirect
163169
)

0 commit comments

Comments
 (0)