Repository navigation
fix(hosting-kubernetes): update KubernetesClient to 21.0.8 - #11503
Conversation
|
Thanks for opening. Yep, KubernetesClient's continual API breaks are pretty annoying :) Will merge once checks pass, etc |
There was a problem hiding this comment.
🔵 Needs a closer look
The major-version upgrade still needs confirmed configured-feed restore and compatibility validation across supported frameworks.
0 open findings
What changed in this PR
Updates Orleans Kubernetes hosting to compile against KubernetesClient 21.x, addressing the reported startup failure when applications use newer client versions.
Changes:
- Raises the centrally managed KubernetesClient version from 18.0.13 to 21.0.8.
| File | Description |
|---|---|
| Directory.Packages.props | Updates the KubernetesClient dependency version. |
🧠 Review effort: Balanced
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
@ReubenBond the CI failures are a restore failure, not a build problem: Reproduced against the feed with an empty package folder ( The feed's Two ways forward, your call:
Branch is rebased locally on current |
Microsoft.Orleans.Hosting.Kubernetes is compiled against KubernetesClient 18.0.13 and declares the dependency as [18.0.13, ). Consumers that reference a newer major restore without a warning, but KubernetesClusterAgent.OnStart then fails with MissingMethodException on k8s.CoreV1OperationsExtensions.ListNamespacedPodAsync, because the generated extension-method signatures change between majors. The sources compile unchanged against 21.0.8. Co-Authored-By: Claude Fable 5.1 <[email protected]>
5b48ae3 to
078e77e
Compare
Code coverage
Report-only conclusion: current-main baseline stale. The newest successful coverage run tested ed59b18, not current main 3fe31e2. Coverage combines every CI test matrix job, including providers, CodeGen, .NET 8/10, Linux, Windows, and macOS, using canonical physical source and branch identities. The comparison remains report-only while normal line and branch variance is calibrated. Coverage details |
Restore dotnet#11503 as merged: compile against KubernetesClient 21.0.8 and constrain resolution to [21.0.8,22.0.0). The earlier 18.x-only cap was a separate backport policy rather than that PR's runtime compatibility fix.
) Co-authored-by: Claude Fable 5.1 <[email protected]> Co-authored-by: Reuben Bond <[email protected]> (cherry picked from commit fe21add) Use the upstream KubernetesClient 21.0.8 upgrade with its [21.0.8,22.0.0) range and document the matching generated pod APIs. Upstream-PR: dotnet#11503 Upstream-Commit: fe21add
Co-authored-by: Claude Fable 5.1 <[email protected]> Co-authored-by: Reuben Bond <[email protected]> (cherry picked from commit fe21add) Use the upstream KubernetesClient 21.0.8 upgrade with its [21.0.8,22.0.0) range and document the matching generated pod APIs. Upstream-PR: #11503 Upstream-Commit: fe21add
Microsoft.Orleans.Hosting.Kuberneteswas compiled against KubernetesClient 18.0.13 with an open-ended dependency range. Applications referencing KubernetesClient 21.x could restore cleanly but fail during silo startup withMissingMethodExceptioninKubernetesClusterAgent.OnStart, because KubernetesClient's generated pod-operation signatures changed between major versions.Update KubernetesClient to 21.0.8 and constrain the package dependency to
[21.0.8,22.0.0). Orleans now compiles against the current generated signatures, and NuGet can flag applications selecting a future major outside the supported range. KubernetesClient 21.0.8 provides nativenet8.0andnet10.0assets and is available from the repository's configured package feed.The branch is rebased onto current
main, preserving the existing MessagePack update. No Kubernetes hosting source or public API changes are required.