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

kubernetes-sigs / karpenter / 26238594231 / 1
81%
main: 81%

Build:
Build:
LAST BUILD BRANCH: inplace-resize-rfc
DEFAULT BRANCH: main
Ran 21 May 2026 04:35PM UTC
Files 155
Run time 26s
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

21 May 2026 04:17PM UTC coverage: 80.596% (-0.04%) from 80.631%
26238594231.1

Pull #3038

github

praveen9354
fix(termination): prevent negative pod grace period when Node Repair triggers

Node Repair (node health controller) annotated NodeClaims with
NodeClaimTerminationTimestampAnnotationKey = now(). By the time the
termination reconciler ran, the timestamp was already in the past, so
time.Until(annotationTime) was negative. The Kubernetes API server
silently clamped the negative gracePeriodSeconds to 0, causing pods to
be force-deleted. This violates at-most-one semantics because the old
container may still be running on the instance while a replacement pod
starts elsewhere.

Fix: when the NodeClaim has a TerminationGracePeriod configured, set
the annotation to now()+TGP rather than now(), matching the semantics
of the nodeclaim/lifecycle controller which correctly computes
DeletionTimestamp+TGP. When there is no TGP configured, now() is still
used since there is no grace window to forward-date.

Also add a defensive clamp (>= 0) on gracePeriodSeconds inside
DeleteExpiringPods so that future callers who set a past timestamp
produce a clearly-bounded zero-second grace rather than relying on the
API server's silent clamp.

Signed-off-by: praveen9354 <praveen9354@gmail.com>
Pull Request #3038: fix(termination): prevent negative pod grace period when Node Repair triggers

12523 of 15538 relevant lines covered (80.6%)

118631.75 hits per line

Source Files on job 26238594231.1
  • Tree
  • List 155
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 26238594231
  • 5045b096 on github
  • Prev Job for on fix/noderepair-negative-grace-period (#26191700754.1)
  • 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