• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kubernetes-sigs / karpenter / 25582899070

08 May 2026 10:34PM UTC coverage: 80.269% (-0.04%) from 80.311%
25582899070

Pull #3008

github

mmanders-amzn
feat(scheduling): add opt-in NodeClaim optimization pass

Adds an opt-in post-scheduling optimization pass behind the
NodeClaimOptimization feature gate that detects when a NodeClaim's
greedy instance-type growth left earlier pods on a machine larger
than they need, and splits the claim at the transition point.
Displaced pods are re-queued and re-scheduled onto a fresh,
right-sized NodeClaim.

The full design, alternatives, and correctness argument live in
designs/nodeclaim-optimization.md.

Off by default. Enable via FEATURE_GATES=NodeClaimOptimization=true.
The disruption controller's simulated scheduler is intentionally
not wired to the gate — consolidation rejects multi-NodeClaim
replacements, so running the splitting pass inside a consolidation
simulation would erase valid consolidation opportunities.

Signed-off-by: Michael Manders <mmanders@amazon.com>
Pull Request #3008: feat(scheduling): add opt-in NodeClaim optimization pass

287 of 359 new or added lines in 8 files covered. (79.94%)

11 existing lines in 2 files now uncovered.

12461 of 15524 relevant lines covered (80.27%)

118437.38 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

76.97
/pkg/controllers/provisioning/scheduling/nodeclaim_optimization.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc