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

kubernetes-sigs / karpenter / 19465313043
80%
main: 81%

Build:
Build:
LAST BUILD BRANCH: eks_overhead_friendly_benchmarks
DEFAULT BRANCH: main
Ran 18 Nov 2025 12:11PM UTC
Jobs 1
Files 154
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Nov 2025 11:51AM UTC coverage: 81.233% (+0.1%) from 81.098%
19465313043

Pull #2639

github

tal19987
Fix topology spread constraint with nodeAffinityPolicy: Honor

This commit fixes issue #2623 where topology spread constraints with
nodeAffinityPolicy: Honor were not correctly considering node affinity
requirements when calculating topology domains.

Problem:
When a pod has topologySpreadConstraints with nodeAffinityPolicy: Honor,
Karpenter was incorrectly including ALL topology domains instead of only
those matching the pod's nodeSelector/affinity. This caused 'unsatisfiable
topology constraint' errors even when valid nodes could be provisioned.

Solution:
- Updated TopologyDomainGroup to track both taints AND requirements for
  each topology domain
- Modified ForEachDomain to use TopologyNodeFilter that considers both
  nodeTaintsPolicy and nodeAffinityPolicy
- Added matchesRequirements check to filter domains by node requirements

Example scenario (from issue #2623):
- NodePool A: capacity-spread=1, taint workload-group=app:NoSchedule
- NodePool B: capacity-spread=2-10, no taint
- Pod: nodeSelector workload-group=app, tolerates taint, topology spread
  with nodeAffinityPolicy: Honor

Before: Karpenter considered domains 1-10, causing unsatisfiable constraint
After: Karpenter correctly considers only domain 1

Fixes #2623
Pull Request #2639: fix: topology spread constraint with nodeAffinityPolicy: Honor

40 of 40 new or added lines in 4 files covered. (100.0%)

11817 of 14547 relevant lines covered (81.23%)

120246.15 hits per line

Jobs
ID Job ID Ran Files Coverage
1 19465313043.1 18 Nov 2025 12:11PM UTC 154
81.23
GitHub Action Run
Source Files on build 19465313043
  • Tree
  • List 154
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #2639
  • PR Base - main (#19342868454)
  • Delete
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