Skip to content

Commit 221c405

Browse files
Merge pull request #1474 from nrb/OCPCLOUD-3288
OCPCLOUD-3288,OCPCLOUD-3282: Bump to k8s 1.35 dependencies
2 parents 955112f + b52392a commit 221c405

3,532 files changed

Lines changed: 141835 additions & 97272 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.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.ci.openshift.org/openshift/release:golang-1.24 AS builder
1+
FROM registry.ci.openshift.org/openshift/release:golang-1.25 AS builder
22
WORKDIR /go/src/github.com/openshift/machine-api-operator
33
COPY . .
44
RUN NO_DOCKER=1 make build && \

cmd/machineset/main.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import (
2929
osconfigv1 "github.com/openshift/api/config/v1"
3030
apifeatures "github.com/openshift/api/features"
3131
machinev1 "github.com/openshift/api/machine/v1beta1"
32+
"github.com/openshift/machine-api-operator/pkg/version"
3233
mapiwebhooks "github.com/openshift/machine-api-operator/pkg/webhooks"
3334

3435
"k8s.io/apiserver/pkg/util/feature"
@@ -110,9 +111,15 @@ func main() {
110111
fmt.Sprintf("The duration that non-leader candidates will wait after observing a leadership renewal until attempting to acquire leadership of a led but unrenewed leader slot. This is effectively the maximum duration that a leader can be stopped before it is replaced by another candidate. This is only applicable if leader election is enabled. Default: (%s)", defaultLeaderElectionValues.LeaseDuration.Duration),
111112
)
112113

114+
majorVersion := version.Version.Major
115+
116+
if majorVersion == 0 {
117+
majorVersion = 4
118+
}
119+
113120
// Sets up feature gates
114121
defaultMutableGate := feature.DefaultMutableFeatureGate
115-
gateOpts, err := features.NewFeatureGateOptions(defaultMutableGate, apifeatures.SelfManaged, apifeatures.FeatureGateMachineAPIMigration, apifeatures.FeatureGateVSphereHostVMGroupZonal, apifeatures.FeatureGateVSphereMultiDisk)
122+
gateOpts, err := features.NewFeatureGateOptions(defaultMutableGate, majorVersion, apifeatures.SelfManaged, apifeatures.FeatureGateMachineAPIMigration, apifeatures.FeatureGateVSphereHostVMGroupZonal, apifeatures.FeatureGateVSphereMultiDisk)
116123
if err != nil {
117124
klog.Fatalf("Error setting up feature gates: %v", err)
118125
}

cmd/vsphere/main.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,15 @@ func main() {
9191
"The address for health checking.",
9292
)
9393

94+
majorVersion := version.Version.Major
95+
96+
if majorVersion == 0 {
97+
majorVersion = 4
98+
}
99+
94100
// Sets up feature gates
95101
defaultMutableGate := feature.DefaultMutableFeatureGate
96-
gateOpts, err := features.NewFeatureGateOptions(defaultMutableGate, apifeatures.SelfManaged, apifeatures.FeatureGateMachineAPIMigration, apifeatures.FeatureGateVSphereHostVMGroupZonal, apifeatures.FeatureGateVSphereMultiDisk)
102+
gateOpts, err := features.NewFeatureGateOptions(defaultMutableGate, majorVersion, apifeatures.SelfManaged, apifeatures.FeatureGateMachineAPIMigration, apifeatures.FeatureGateVSphereHostVMGroupZonal, apifeatures.FeatureGateVSphereMultiDisk)
97103
if err != nil {
98104
klog.Fatalf("Error setting up feature gates: %v", err)
99105
}
@@ -170,7 +176,7 @@ func main() {
170176
machineActuator := machine.NewActuator(machine.ActuatorParams{
171177
Client: mgr.GetClient(),
172178
APIReader: mgr.GetAPIReader(),
173-
EventRecorder: mgr.GetEventRecorderFor("vspherecontroller"),
179+
EventRecorder: mgr.GetEventRecorderFor("vspherecontroller"), //nolint:staticcheck
174180
TaskIDCache: taskIDCache,
175181
FeatureGates: defaultMutableGate,
176182
OpenshiftConfigNamespace: vsphere.OpenshiftConfigNamespace,

go.mod

Lines changed: 69 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
module github.com/openshift/machine-api-operator
22

3-
go 1.24.0
3+
go 1.25.0
44

55
// These are needed for the OTE tests. Due to how we get the kubeconfig from the command line, there doesn't seem to be
66
// an API yet we can leverage so that I do not have to copy what openshift/kubernetes/openshift-hack/cmd/k8s-tests-ext did to initialize.
77
replace (
8-
github.com/onsi/ginkgo/v2 => github.com/openshift/onsi-ginkgo/v2 v2.6.1-0.20251001123353-fd5b1fb35db1
9-
k8s.io/apiserver => github.com/openshift/kubernetes/staging/src/k8s.io/apiserver v0.0.0-20251015171918-61114aa5a292 // openshift kubernetes has very old copy of k8s.io/kubernetes/pkg/kubelet/server/server.go
10-
k8s.io/kubelet => github.com/openshift/kubernetes/staging/src/k8s.io/kubelet v0.0.0-20251015171918-61114aa5a292 // openshift kubernetes has very old copy of k8s.io/kubernetes/cmd/kubelet/app/options/options.go
11-
k8s.io/kubernetes => github.com/openshift/kubernetes v1.30.1-0.20251027205255-4e0347881cbd
8+
github.com/onsi/ginkgo/v2 => github.com/openshift/onsi-ginkgo/v2 v2.6.1-0.20260303184444-1cc650aa0565
9+
10+
k8s.io/apiserver => github.com/openshift/kubernetes/staging/src/k8s.io/apiserver v0.0.0-20260305123649-d18f3f005eaa // openshift kubernetes has very old copy of k8s.io/kubernetes/pkg/kubelet/server/server.go
11+
k8s.io/kubelet => github.com/openshift/kubernetes/staging/src/k8s.io/kubelet v0.0.0-20260305123649-d18f3f005eaa // openshift kubernetes has very old copy of k8s.io/kubernetes/cmd/kubelet/app/options/options.go
12+
k8s.io/kubernetes => github.com/openshift/kubernetes v1.30.1-0.20260305123649-d18f3f005eaa
1213
)
1314

1415
require (
@@ -18,38 +19,38 @@ require (
1819
github.com/google/uuid v1.6.0
1920
github.com/onsi/ginkgo/v2 v2.27.2
2021
github.com/onsi/gomega v1.38.2
21-
github.com/openshift-eng/openshift-tests-extension v0.0.0-20251105193959-75a0be5d9bd7
22-
github.com/openshift/api v0.0.0-20260213204242-d34f11c515b3
23-
github.com/openshift/client-go v0.0.0-20251202151200-fb4471581cf8
22+
github.com/openshift-eng/openshift-tests-extension v0.0.0-20260127124016-0fed2b824818
23+
github.com/openshift/api v0.0.0-20260305140000-0790d2957f54
24+
github.com/openshift/client-go v0.0.0-20260305144912-aba4b273812d
2425
github.com/openshift/cluster-api-actuator-pkg/testutils v0.0.0-20250910145856-21d03d30056d
2526
github.com/openshift/cluster-control-plane-machine-set-operator v0.0.0-20251029084908-344babe6a957
26-
github.com/openshift/library-go v0.0.0-20251107090138-0de9712313a5
27+
github.com/openshift/library-go v0.0.0-20260303171201-5d9eb6295ff6
2728
github.com/prometheus/client_golang v1.23.2
2829
github.com/spf13/cobra v1.10.1
2930
github.com/spf13/pflag v1.0.10
3031
github.com/stretchr/testify v1.11.1
3132
github.com/vmware/govmomi v0.52.0
32-
golang.org/x/net v0.46.0
33+
golang.org/x/net v0.47.0 // indirect
3334
golang.org/x/time v0.14.0
3435
gopkg.in/gcfg.v1 v1.2.3 // indirect
35-
k8s.io/api v0.34.1
36-
k8s.io/apimachinery v0.34.1
37-
k8s.io/apiserver v0.34.1
38-
k8s.io/client-go v0.34.1
36+
k8s.io/api v0.35.1
37+
k8s.io/apimachinery v0.35.1
38+
k8s.io/apiserver v0.35.1
39+
k8s.io/client-go v0.35.1
3940
k8s.io/cloud-provider-vsphere v1.32.2
40-
k8s.io/component-base v0.34.1
41-
k8s.io/cri-client v0.34.1 // indirect
42-
k8s.io/csi-translation-lib v0.34.1 // indirect
43-
k8s.io/dynamic-resource-allocation v0.34.1 // indirect
41+
k8s.io/component-base v0.35.1
42+
k8s.io/cri-client v0.35.1 // indirect
43+
k8s.io/csi-translation-lib v0.35.1 // indirect
44+
k8s.io/dynamic-resource-allocation v0.35.1 // indirect
4445
k8s.io/klog/v2 v2.130.1
45-
k8s.io/kube-scheduler v0.34.1 // indirect
46-
k8s.io/kubectl v0.34.1
47-
k8s.io/kubernetes v1.34.1
48-
k8s.io/mount-utils v0.34.1 // indirect
49-
k8s.io/sample-apiserver v0.34.1 // indirect
50-
k8s.io/utils v0.0.0-20250604170112-4c0f3b243397
46+
k8s.io/kube-scheduler v0.35.1 // indirect
47+
k8s.io/kubectl v0.35.1
48+
k8s.io/kubernetes v1.35.1
49+
k8s.io/mount-utils v0.35.1 // indirect
50+
k8s.io/sample-apiserver v0.35.1 // indirect
51+
k8s.io/utils v0.0.0-20251002143259-bc988d571ff4
5152
sigs.k8s.io/cluster-api v1.11.3
52-
sigs.k8s.io/controller-runtime v0.22.3
53+
sigs.k8s.io/controller-runtime v0.23.3
5354
sigs.k8s.io/controller-runtime/tools/setup-envtest v0.0.0-20240923090159-236e448db12c
5455
sigs.k8s.io/kube-storage-version-migrator v0.0.6-0.20230721195810-5c8923c5ff96
5556
sigs.k8s.io/yaml v1.6.0
@@ -61,6 +62,7 @@ require (
6162
4d63.com/gocheckcompilerdirectives v1.3.0 // indirect
6263
4d63.com/gochecknoglobals v0.2.2 // indirect
6364
cel.dev/expr v0.24.0 // indirect
65+
cyphar.com/go-pathrs v0.2.1 // indirect
6466
github.com/4meepo/tagalign v1.4.2 // indirect
6567
github.com/Abirdcfly/dupword v0.1.3 // indirect
6668
github.com/Antonboom/errname v1.0.0 // indirect
@@ -75,7 +77,7 @@ require (
7577
github.com/MakeNowJust/heredoc v1.0.0 // indirect
7678
github.com/Masterminds/semver/v3 v3.4.0 // indirect
7779
github.com/Microsoft/go-winio v0.6.2 // indirect
78-
github.com/Microsoft/hnslib v0.1.1 // indirect
80+
github.com/Microsoft/hnslib v0.1.2 // indirect
7981
github.com/NYTimes/gziphandler v1.1.1 // indirect
8082
github.com/OpenPeeDeeP/depguard/v2 v2.2.1 // indirect
8183
github.com/alecthomas/go-check-sumtype v0.3.1 // indirect
@@ -105,21 +107,20 @@ require (
105107
github.com/chavacava/garif v0.1.0 // indirect
106108
github.com/ckaznocha/intrange v0.3.0 // indirect
107109
github.com/container-storage-interface/spec v1.9.0 // indirect
108-
github.com/containerd/containerd/api v1.8.0 // indirect
110+
github.com/containerd/containerd/api v1.9.0 // indirect
109111
github.com/containerd/errdefs v1.0.0 // indirect
110112
github.com/containerd/errdefs/pkg v0.3.0 // indirect
111113
github.com/containerd/log v0.1.0 // indirect
112-
github.com/containerd/ttrpc v1.2.6 // indirect
113-
github.com/containerd/typeurl/v2 v2.2.2 // indirect
114+
github.com/containerd/ttrpc v1.2.7 // indirect
115+
github.com/containerd/typeurl/v2 v2.2.3 // indirect
114116
github.com/coreos/go-semver v0.3.1 // indirect
115117
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
116118
github.com/curioswitch/go-reassign v0.3.0 // indirect
117-
github.com/cyphar/filepath-securejoin v0.4.1 // indirect
119+
github.com/cyphar/filepath-securejoin v0.6.0 // indirect
118120
github.com/daixiang0/gci v0.13.5 // indirect
119121
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
120122
github.com/denis-tingaikin/go-header v0.5.0 // indirect
121123
github.com/distribution/reference v0.6.0 // indirect
122-
github.com/docker/docker v27.1.2+incompatible // indirect
123124
github.com/docker/go-units v0.5.0 // indirect
124125
github.com/emicklei/go-restful/v3 v3.12.2 // indirect
125126
github.com/ettle/strcase v0.2.0 // indirect
@@ -167,7 +168,7 @@ require (
167168
github.com/golangci/revgrep v0.8.0 // indirect
168169
github.com/golangci/unconvert v0.0.0-20240309020433-c5143eacb3ed // indirect
169170
github.com/google/btree v1.1.3 // indirect
170-
github.com/google/cadvisor v0.52.1 // indirect
171+
github.com/google/cadvisor v0.53.0 // indirect
171172
github.com/google/cel-go v0.26.0 // indirect
172173
github.com/google/gnostic-models v0.7.0 // indirect
173174
github.com/google/go-cmp v0.7.0 // indirect
@@ -240,9 +241,8 @@ require (
240241
github.com/opencontainers/cgroups v0.0.3 // indirect
241242
github.com/opencontainers/go-digest v1.0.0 // indirect
242243
github.com/opencontainers/image-spec v1.1.1 // indirect
243-
github.com/opencontainers/runc v1.2.5 // indirect
244-
github.com/opencontainers/runtime-spec v1.2.0 // indirect
245-
github.com/opencontainers/selinux v1.11.1 // indirect
244+
github.com/opencontainers/runtime-spec v1.2.1 // indirect
245+
github.com/opencontainers/selinux v1.13.0 // indirect
246246
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
247247
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
248248
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
@@ -258,6 +258,7 @@ require (
258258
github.com/raeperd/recvcheck v0.2.0 // indirect
259259
github.com/rivo/uniseg v0.4.7 // indirect
260260
github.com/robfig/cron v1.2.0 // indirect
261+
github.com/robfig/cron/v3 v3.0.1 // indirect
261262
github.com/rogpeppe/go-internal v1.14.1 // indirect
262263
github.com/russross/blackfriday/v2 v2.1.0 // indirect
263264
github.com/ryancurrah/gomodguard v1.3.5 // indirect
@@ -301,69 +302,68 @@ require (
301302
gitlab.com/bosi/decorder v0.4.2 // indirect
302303
go-simpler.org/musttag v0.13.0 // indirect
303304
go-simpler.org/sloglint v0.9.0 // indirect
304-
go.etcd.io/etcd/api/v3 v3.6.4 // indirect
305-
go.etcd.io/etcd/client/pkg/v3 v3.6.4 // indirect
306-
go.etcd.io/etcd/client/v3 v3.6.4 // indirect
305+
go.etcd.io/etcd/api/v3 v3.6.5 // indirect
306+
go.etcd.io/etcd/client/pkg/v3 v3.6.5 // indirect
307+
go.etcd.io/etcd/client/v3 v3.6.5 // indirect
307308
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
308309
go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful v0.44.0 // indirect
309310
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.60.0 // indirect
310-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.59.0 // indirect
311-
go.opentelemetry.io/otel v1.35.0 // indirect
311+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 // indirect
312+
go.opentelemetry.io/otel v1.36.0 // indirect
312313
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.34.0 // indirect
313314
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.34.0 // indirect
314-
go.opentelemetry.io/otel/metric v1.35.0 // indirect
315-
go.opentelemetry.io/otel/sdk v1.34.0 // indirect
316-
go.opentelemetry.io/otel/trace v1.35.0 // indirect
315+
go.opentelemetry.io/otel/metric v1.36.0 // indirect
316+
go.opentelemetry.io/otel/sdk v1.36.0 // indirect
317+
go.opentelemetry.io/otel/trace v1.36.0 // indirect
317318
go.opentelemetry.io/proto/otlp v1.5.0 // indirect
318319
go.uber.org/atomic v1.11.0 // indirect
319320
go.uber.org/automaxprocs v1.6.0 // indirect
320321
go.uber.org/multierr v1.11.0 // indirect
321322
go.uber.org/zap v1.27.0 // indirect
322-
go.yaml.in/yaml/v2 v2.4.2 // indirect
323+
go.yaml.in/yaml/v2 v2.4.3 // indirect
323324
go.yaml.in/yaml/v3 v3.0.4 // indirect
324-
golang.org/x/crypto v0.43.0 // indirect
325+
golang.org/x/crypto v0.45.0 // indirect
325326
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect
326327
golang.org/x/exp/typeparams v0.0.0-20250210185358-939b2ce775ac // indirect
327-
golang.org/x/mod v0.28.0 // indirect
328+
golang.org/x/mod v0.29.0 // indirect
328329
golang.org/x/oauth2 v0.30.0 // indirect
329-
golang.org/x/sync v0.17.0 // indirect
330-
golang.org/x/sys v0.37.0 // indirect
331-
golang.org/x/term v0.36.0 // indirect
332-
golang.org/x/text v0.30.0 // indirect
333-
golang.org/x/tools v0.37.0 // indirect
330+
golang.org/x/sync v0.18.0 // indirect
331+
golang.org/x/sys v0.38.0 // indirect
332+
golang.org/x/term v0.37.0 // indirect
333+
golang.org/x/text v0.31.0 // indirect
334+
golang.org/x/tools v0.38.0 // indirect
334335
golang.org/x/tools/go/expect v0.1.1-deprecated // indirect
335-
golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated // indirect
336336
gomodules.xyz/jsonpatch/v2 v2.5.0 // indirect
337337
google.golang.org/genproto/googleapis/api v0.0.0-20250303144028-a0af3efb3deb // indirect
338-
google.golang.org/genproto/googleapis/rpc v0.0.0-20250303144028-a0af3efb3deb // indirect
339-
google.golang.org/grpc v1.72.1 // indirect
338+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250528174236-200df99c418a // indirect
339+
google.golang.org/grpc v1.72.2 // indirect
340340
google.golang.org/protobuf v1.36.8 // indirect
341-
gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
341+
gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect
342342
gopkg.in/go-jose/go-jose.v2 v2.6.3 // indirect
343343
gopkg.in/inf.v0 v0.9.1 // indirect
344344
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
345345
gopkg.in/warnings.v0 v0.1.2 // indirect
346346
gopkg.in/yaml.v2 v2.4.0 // indirect
347347
gopkg.in/yaml.v3 v3.0.1 // indirect
348348
honnef.co/go/tools v0.6.1 // indirect
349-
k8s.io/apiextensions-apiserver v0.34.1 // indirect
350-
k8s.io/cli-runtime v0.34.1 // indirect
351-
k8s.io/cloud-provider v0.32.0 // indirect
352-
k8s.io/cluster-bootstrap v0.33.3 // indirect
353-
k8s.io/component-helpers v0.34.1 // indirect
354-
k8s.io/controller-manager v0.32.1 // indirect
355-
k8s.io/cri-api v0.34.1 // indirect
356-
k8s.io/kms v0.34.1 // indirect
357-
k8s.io/kube-aggregator v0.34.1 // indirect
358-
k8s.io/kube-openapi v0.0.0-20250710124328-f3f2b991d03b // indirect
359-
k8s.io/kubelet v0.34.1 // indirect
360-
k8s.io/pod-security-admission v0.32.2 // indirect
349+
k8s.io/apiextensions-apiserver v0.35.1 // indirect
350+
k8s.io/cli-runtime v0.35.1 // indirect
351+
k8s.io/cloud-provider v0.35.1 // indirect
352+
k8s.io/cluster-bootstrap v0.35.1 // indirect
353+
k8s.io/component-helpers v0.35.1 // indirect
354+
k8s.io/controller-manager v0.35.1 // indirect
355+
k8s.io/cri-api v0.35.1 // indirect
356+
k8s.io/kms v0.35.1 // indirect
357+
k8s.io/kube-aggregator v0.35.1 // indirect
358+
k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 // indirect
359+
k8s.io/kubelet v0.35.1 // indirect
360+
k8s.io/pod-security-admission v0.35.1 // indirect
361361
mvdan.cc/gofumpt v0.7.0 // indirect
362362
mvdan.cc/unparam v0.0.0-20240528143540-8a5130ca722f // indirect
363363
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.2 // indirect
364-
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
364+
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect
365365
sigs.k8s.io/kustomize/api v0.20.1 // indirect
366366
sigs.k8s.io/kustomize/kyaml v0.20.1 // indirect
367367
sigs.k8s.io/randfill v1.0.0 // indirect
368-
sigs.k8s.io/structured-merge-diff/v6 v6.3.0 // indirect
368+
sigs.k8s.io/structured-merge-diff/v6 v6.3.2-0.20260122202528-d9cc6641c482 // indirect
369369
)

0 commit comments

Comments
 (0)