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

kubernetes-sigs / karpenter / 20947535802
81%
main: 81%

Build:
Build:
LAST BUILD BRANCH: fix/2765-nodeoverlay-exists-operator
DEFAULT BRANCH: main
Ran 13 Jan 2026 07:03AM UTC
Jobs 1
Files 153
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

13 Jan 2026 06:49AM UTC coverage: 80.658% (-0.02%) from 80.676%
20947535802

Pull #2778

github

moko-poi
fix: Allow NodeOverlay with In operator when NodePool uses Exists (#2765)

Previously, when a NodePool used the Exists operator for a custom
label (e.g., nvidia.com/device-plugin.config), and a NodeOverlay
attempted to use the In operator with specific values for the same
label, the compatibility check would fail with "label does not have
known values" error.

This was incorrect behavior because:
- NodePool Exists operator means "this label must exist with any value"
- NodeOverlay In operator means "add resources when label has these values"
- These are logically compatible and should not conflict

This change updates the Compatible() method in requirements.go to
recognize when base requirements use Exists operator and allow
overlay requirements to specify concrete values.

Changes:
- Modified pkg/scheduling/requirements.go Compatible() method
- Added test case in requirements_test.go
- Added integration test in nodeoverlay/suite_test.go for GPU
  time-slicing use case

Fixes #2765
Pull Request #2778: fix: NodeOverlay compatibility with NodePool Exists operator

2 of 2 new or added lines in 1 file covered. (100.0%)

7 existing lines in 1 file now uncovered.

12010 of 14890 relevant lines covered (80.66%)

120827.56 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
7
88.76
-7.87% pkg/controllers/provisioning/scheduling/preferences.go
Jobs
ID Job ID Ran Files Coverage
1 20947535802.1 13 Jan 2026 07:03AM UTC 153
80.66
GitHub Action Run
Source Files on build 20947535802
  • Tree
  • List 153
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #2778
  • PR Base - main (#20869791870)
  • 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