Skip to content

chore(deps): Upgrade Kubernetes dependencies to v1.34.0#2495

Open
xenonnn4w wants to merge 6 commits intoopenyurtio:masterfrom
xenonnn4w:upgradek8sv
Open

chore(deps): Upgrade Kubernetes dependencies to v1.34.0#2495
xenonnn4w wants to merge 6 commits intoopenyurtio:masterfrom
xenonnn4w:upgradek8sv

Conversation

@xenonnn4w
Copy link

@xenonnn4w xenonnn4w commented Jan 13, 2026

What type of PR is this?

/kind enhancement

What this PR does / why we need it:

This PR upgrades all Kubernetes client-go, apimachinery, and related dependencies from v0.32.1 to v0.34.0 (corresponding to Kubernetes v1.34).

Changes made to accommodate API breaking changes in v1.34:

  • Add new storage.Interface methods: CompactRevision, GetCurrentResourceVersion, SetKeysFunc, and Stats
  • Wrap cacher.Cacher with CacheDelegator to implement full storage.Interface
  • Add required EventsHistoryWindow config to cacher.Config
  • Remove deprecated Logf field from certificate.Config
  • Add StatefulSetValidationOptions parameter to ValidateStatefulSetSpec calls
  • Update kubeconfig test to match new serialization behavior

Which issue(s) this PR fixes:

Fixes

Special notes for your reviewer:

All OpenYurt components (yurtadm, yurt-node-servant, yurthub, yurt-manager, yurt-iot-dock) build successfully with these changes(I tested them). Unit tests for affected packages pass.

Does this PR introduce a user-facing change?

no

Upgraded Kubernetes dependencies to v1.34.0 for compatibility with Kubernetes v1.34 clusters.

@xenonnn4w xenonnn4w requested a review from a team as a code owner January 13, 2026 17:35
@xenonnn4w
Copy link
Author

Fixed SA1019 deprecation warnings for corev1.Endpoints and corev1.EndpointSubset (deprecated in K8s v1.33+):

  • Removed v1.Endpoints support from servicetopology filter (EndpointSlice already supported)
  • Added //nolint:staticcheck to webhook/controller code that intentionally handles Endpoints for backward compatibility

@zyjhtangtang
Copy link

@xenonnn4w Please focus on the blocking issues in the code detection.

Add package-level //nolint:staticcheck directives to suppress SA1019
warnings for corev1.Endpoints and corev1.EndpointSubset in files that
intentionally use these deprecated APIs for backward compatibility.

Files updated:
- cmd/yurthub/app/config/config.go
- pkg/yurthub/locallb/locallb.go
- pkg/yurthub/locallb/locallb_test.go
- pkg/yurtmanager/controller/raven/gatewayinternalservice/gateway_internal_service_controller.go
- pkg/yurtmanager/controller/raven/gatewaypublicservice/gateway_public_service_controller.go
- pkg/yurtmanager/controller/servicetopology/adapter/endpoints_adapter.go
- pkg/yurttunnel/informers/serverinformer.go
- pkg/yurttunnel/server/serveraddr/addr.go

Signed-off-by: xenonnn4w <xenonnn4w@gmail.com>
@xenonnn4w
Copy link
Author

@zyjhtangtang can you run the checks one more time

@xenonnn4w
Copy link
Author

@zyjhtangtang now passing all the ci. Had some issue while running the make mainfests.

clientcmd.Write() in k8s v1.34.0 no longer emits empty preferences field
@codecov
Copy link

codecov bot commented Feb 9, 2026

Codecov Report

❌ Patch coverage is 45.45455% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 44.06%. Comparing base (d32d27f) to head (9c1f7ac).
⚠️ Report is 8 commits behind head on master.

Files with missing lines Patch % Lines
.../yurthub/multiplexer/storage/api_server_storage.go 0.00% 7 Missing ⚠️
pkg/yurthub/multiplexer/storage/fake_storage.go 0.00% 7 Missing ⚠️
pkg/yurthub/multiplexer/cache.go 92.85% 1 Missing ⚠️
...troller/platformadmin/platform_admin_controller.go 0.00% 1 Missing ⚠️
...r/controller/yurtappset/yurt_app_set_controller.go 0.00% 0 Missing and 1 partial ⚠️
...ebhook/yurtappset/v1beta1/yurtappset_validation.go 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2495      +/-   ##
==========================================
+ Coverage   43.88%   44.06%   +0.17%     
==========================================
  Files         399      399              
  Lines       26560    26562       +2     
==========================================
+ Hits        11657    11705      +48     
+ Misses      13843    13793      -50     
- Partials     1060     1064       +4     
Flag Coverage Δ
unittests 44.06% <45.45%> (+0.17%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sonarqubecloud
Copy link

@xenonnn4w
Copy link
Author

Hey @zyjhtangtang ; can you guide me how i fix the failing e2e-tests at d751378, im unable to figure out it.

@xenonnn4w
Copy link
Author

@zyjhtangtang can you review it, all CI checks are passing! Thanks.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants