Skip to content

Update Kubernetes dependencies to v1.36.0-rc.0#9484

Open
mtrqq wants to merge 15 commits intokubernetes:masterfrom
mtrqq:kubernetes-1.36-bump
Open

Update Kubernetes dependencies to v1.36.0-rc.0#9484
mtrqq wants to merge 15 commits intokubernetes:masterfrom
mtrqq:kubernetes-1.36-bump

Conversation

@mtrqq
Copy link
Copy Markdown
Contributor

@mtrqq mtrqq commented Apr 14, 2026

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

This PR updates dependencies to use kubernetes 1.36.0-rc.0 release tag

As part of this change I needed to patch multiple modules and tests to adapt to new APIs or feature gate getting enabled by default. Changes which affected that:

There's a new method on the scheduler SharedLister requiring us to implement PodGroupStates() method and interface on the delegating lister as well as the snapshots. Implementation added in this PR is no-op

There's a new method on the SharedDRAManager interface in scheduler requiring us to implement PodGroupLister interface inside DRA snapshot, predicate snapshot and delegate lister. Implementation added in this PR is no-op

New implementation of the node declared features works based on the bitsets where features need to be predefined for this to work, for some tests which rely on the default feature registry we needed to replace feature names with real ones instead of imaginary ones. Other tests needed to be patched as they are modifying a global framework object and it was done too late during the flow

There was a race condition in scheduler code which is never run for CA implementation, interface changes were required to ResourceClaimTracker interface

There's a change in k8s.io/client-go/tools/cache package requiring to implement HasSyncedChecker, there's no release tag in controller-runtime dependency which can accommodate that, while the fix is already merged on 11th of March (kubernetes-sigs/controller-runtime#3462), currently pinned dependency is using pseudo version based on the commit hash

*** Feature Gate Changes

  • DRAExtendedResource is enabled by default since 1.36 which caused a test-level breakage (panic in scheduler plugin) as DRA shared manager is not initialized when DRA is disabled, the fix is to implement no-op shared DRA manager and to configure that for the scheduler framework
  • NodeDeclaredFeatures is enabled by default since 1.36 which required inverting an expectation when comparing sanitized node infos in tests

Which issue(s) this PR fixes:

Fixes #9382

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Update Kubernetes libraries to v1.36.0-rc.0

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. do-not-merge/needs-area labels Apr 14, 2026
@k8s-ci-robot k8s-ci-robot requested review from elmiko and x13n April 14, 2026 11:14
@k8s-ci-robot k8s-ci-robot added area/cluster-autoscaler size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed do-not-merge/needs-area labels Apr 14, 2026
@mtrqq mtrqq force-pushed the kubernetes-1.36-bump branch from 84675a7 to b8f737c Compare April 14, 2026 11:15
@mtrqq mtrqq force-pushed the kubernetes-1.36-bump branch from b8f737c to c40c25e Compare April 14, 2026 11:16
mtrqq added 12 commits April 14, 2026 11:53
…e requirements

Current version raises compilation errors with 1.36 tools/cache library version, this change bumps controller runtime to have it adapted to the new requirements. Example error: vendor/sigs.k8s.io/controller-runtime/pkg/cache/multi_namespace_cache.go:363:9: cannot use handles (variable of struct type handlerRegistration) as "k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration value in return statement: handlerRegistration does not implement "k8s.io/client-go/tools/cache".ResourceEventHandlerRegistration (missing method HasSyncedChecker)

There's no release tag containing a PR with a fix, this patch uses a specific commit hash to depend on, which should later be replaced with a correct, non-pseudo version
This change also changes the assumptions in couple tests as node declared features graduated to beta in 1.36 enabling intergration by default
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: mtrqq
Once this PR has been reviewed and has the lgtm label, please assign jackfrancis for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@mtrqq
Copy link
Copy Markdown
Contributor Author

mtrqq commented Apr 15, 2026

/assign BigDarkClown
/assign towca
/assign jackfrancis

@jackfrancis
Copy link
Copy Markdown
Contributor

/test pull-cluster-autoscaler-e2e-azure-master

@jackfrancis
Copy link
Copy Markdown
Contributor

/retest

@jackfrancis
Copy link
Copy Markdown
Contributor

@mtrqq I updated the PR description to say that it fixes #9382, lemme know if I'm wrong about that!

@mtrqq
Copy link
Copy Markdown
Contributor Author

mtrqq commented Apr 17, 2026

@mtrqq I updated the PR description to say that it fixes #9382, lemme know if I'm wrong about that!

@jackfrancis, that's correct, thanks for adding this!

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

Labels

area/cluster-autoscaler cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. release-note Denotes a PR that will be considered when it comes time to generate release notes. 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.

consume DRA interface changes to fix gang scheduling bug

6 participants