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

kubernetes-sigs / lws / 29508491920
58%

Build:
DEFAULT BRANCH: main
Ran 16 Jul 2026 02:54PM UTC
Jobs 1
Files 26
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

16 Jul 2026 02:51PM UTC coverage: 56.222% (+0.3%) from 55.903%
29508491920

push

github

web-flow
webhook: reject maxSurge=0 and maxUnavailable=0 in DisaggregatedSet (#912)

The LWS validating webhook already enforces that maxSurge=0 and
maxUnavailable=0 is rejected when replicas > 0. The DisaggregatedSet
validating webhook was missing the same check, so a DisaggregatedSet
with this combination was admitted; the controller then tried to create
a child LWS on every reconcile, which the LWS webhook rejected each
time, causing an infinite back-off loop with no user-visible error on
the DS object.

Changes:
- Added validateRoleMaxSurgeUnavailable() which mirrors the LWS webhook
  check. Uses intstr.GetScaledValueFromIntOrPercent so percentage values
  like '0%' are also caught.
- Roles with replicas=0 (or unset) are exempt, matching LWS behaviour.
- Added validatePositiveIntOrPercentDS and isNotMoreThan100PercentDS
  helpers for per-field validation.
- Added unit tests covering int literals, percentage strings, and the
  zero-replica exemption.

Fixes: https://github.com/kubernetes-sigs/lws/issues/869

41 of 55 new or added lines in 2 files covered. (74.55%)

1 existing line in 1 file now uncovered.

2223 of 3954 relevant lines covered (56.22%)

47.48 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
85.11
-3.78% pkg/webhooks/disaggregatedset/disaggregatedset_webhook.go
5
13.45
0.0% pkg/webhooks/leaderworkerset_webhook.go

Coverage Regressions

Lines Coverage ∆ File
1
13.45
0.0% pkg/webhooks/leaderworkerset_webhook.go
Jobs
ID Job ID Ran Files Coverage
1 29508491920.1 16 Jul 2026 02:54PM UTC 26
56.22
GitHub Action Run
Source Files on build 29508491920
  • Tree
  • List 26
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 31d8b439 on github
  • Prev Build on main (#29501020366)
  • Next Build on main (#29587098917)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc