Skip to content

Upgrade top level dependencies to K/K v0.36#832

Open
cheftako wants to merge 1 commit into
kubernetes-sigs:masterfrom
cheftako:update
Open

Upgrade top level dependencies to K/K v0.36#832
cheftako wants to merge 1 commit into
kubernetes-sigs:masterfrom
cheftako:update

Conversation

@cheftako
Copy link
Copy Markdown
Contributor

@cheftako cheftako commented May 4, 2026

Prompt:
please upgrade the top level go.mod to use go version 1.26.0. Ensure all the tests pass. Do not make changes in konnectivity-client.

All tests pass. Here's a summary of what was done:

Dependency upgrades (matching kubernetes/kubernetes go.mod):

  • k8s.io/{api,apimachinery,client-go,component-base,component-helpers}: v0.34.0 → v0.36.0
  • k8s.io/klog/v2: v2.130.1 → v2.140.0
  • k8s.io/utils: v0.0.0-20250604 → v0.0.0-20260210
  • k8s.io/kube-openapi: updated to v0.0.0-20260502
  • sigs.k8s.io/controller-runtime: v0.20.3 → v0.24.0 (required to match k8s v0.36.0)
  • sigs.k8s.io/apiserver-network-proxy/konnectivity-client: v0.31.0 → v0.34.0
  • google.golang.org/grpc: v1.79.3 → v1.80.0
  • google.golang.org/protobuf: v1.36.10 → v1.36.12-pre
  • golang.org/x/{net,sys,term,text,oauth2,time}: various patch upgrades
  • go.opentelemetry.io/otel{,/trace}: v1.41.0 → v1.43.0
  • github.com/prometheus/client_golang: v1.23.0 → v1.23.2
  • Various other smaller bumps

Code fix required: NewLeaseInformerWithMetrics in pkg/agent/lease_counter.go — the WatchListClient feature gate became enabled by default in k8s
v1.35+, so the reflector now expects bookmark events. Wrapping the ListWatch with cache.ToListWatcherWithWatchListSemantics(lw, client) properly
propagates the fake client's signal that it doesn't support WatchList semantics, fixing a test hang.

Prompt:
please upgrade the top level go.mod to use go version 1.26.0. Ensure all the tests pass. Do not make changes in konnectivity-client.

All tests pass. Here's a summary of what was done:

  Dependency upgrades (matching kubernetes/kubernetes go.mod):
  - k8s.io/{api,apimachinery,client-go,component-base,component-helpers}: v0.34.0 → v0.36.0
  - k8s.io/klog/v2: v2.130.1 → v2.140.0
  - k8s.io/utils: v0.0.0-20250604 → v0.0.0-20260210
  - k8s.io/kube-openapi: updated to v0.0.0-20260502
  - sigs.k8s.io/controller-runtime: v0.20.3 → v0.24.0 (required to match k8s v0.36.0)
  - sigs.k8s.io/apiserver-network-proxy/konnectivity-client: v0.31.0 → v0.34.0
  - google.golang.org/grpc: v1.79.3 → v1.80.0
  - google.golang.org/protobuf: v1.36.10 → v1.36.12-pre
  - golang.org/x/{net,sys,term,text,oauth2,time}: various patch upgrades
  - go.opentelemetry.io/otel{,/trace}: v1.41.0 → v1.43.0
  - github.com/prometheus/client_golang: v1.23.0 → v1.23.2
  - Various other smaller bumps

  Code fix required: NewLeaseInformerWithMetrics in pkg/agent/lease_counter.go — the WatchListClient feature gate became enabled by default in k8s
  v1.35+, so the reflector now expects bookmark events. Wrapping the ListWatch with cache.ToListWatcherWithWatchListSemantics(lw, client) properly
  propagates the fake client's signal that it doesn't support WatchList semantics, fixing a test hang.
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 4, 2026
@k8s-ci-robot k8s-ci-robot requested a review from elmiko May 4, 2026 22:39
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cheftako

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot requested a review from tallclair May 4, 2026 22:39
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels May 4, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

@cheftako: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-apiserver-network-proxy-test-master 05637c8 link true /test pull-apiserver-network-proxy-test-master

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@mihivagyok
Copy link
Copy Markdown
Contributor

My PR is similar:
#833

I wonder if similar updates can be done in earlier releases. Thanks!

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 7, 2026
@cheftako
Copy link
Copy Markdown
Contributor Author

cheftako commented May 8, 2026

My PR is similar: #833

I wonder if similar updates can be done in earlier releases. Thanks!

It can, how far back would you like this cherry picked?
My preference would be to only go as far back as 0.33.
That corresponds to the supported versions from https://kubernetes.io/releases/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants