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

kubernetes-sigs / lws / 42169423328
88%

Build:
DEFAULT BRANCH: main
Ran 06 Nov 2026 05:42AM UTC
Jobs 1
Files 41
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

06 Nov 2026 05:36AM UTC coverage: 88.213% (+0.04%) from 88.177%
42169423328

push

github

web-flow
fix: surface permanently invalid workload templates on the LWS status (#1290)

When the rendered pod template is rejected by the API server (e.g. a
securityContext combining privileged=true with
allowPrivilegeEscalation=false), every StatefulSet/Deployment apply
fails and the rollout retries forever. The FailedCreate/FailedUpdate
warning events are transient, and the status conditions keep reporting
Progressing=True, so neither kubectl nor watching controllers can tell
why no replicas are coming up.

On Invalid apply errors, record Progressing=False and Available=False
with reason InvalidTemplate carrying the API-server message, flip an
interrupted UpdateInProgress to False, and refresh
status.observedGeneration so generation-aware callers do not treat a
previous healthy generation as ready at the rejected one. When
Available later becomes True, setCondition resets the stale
InvalidTemplate reason and message on Progressing back to the defaults.

With a dedicated leaderTemplate (or hash identity) the leader apply
never validates the worker template, so an invalid workerTemplate would
replace healthy groups with leader pods that never get workers: probe
it with a DryRunAll worker StatefulSet apply on new or updated
revisions only, adding zero API calls to steady-state reconciles.

Signed-off-by: Huagong Wang <wanghuagong@kylinos.cn>

70 of 79 new or added lines in 2 files covered. (88.61%)

10784 of 12225 relevant lines covered (88.21%)

31749.91 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
85.65
0.61% pkg/controllers/leaderworkerset_controller.go
2
82.51
-0.07% pkg/controllers/leaderworkerset_hash.go
Jobs
ID Job ID Ran Files Coverage
1 42169423328.1 06 Nov 2026 05:42AM UTC 41
88.21
GitHub Action Run
Source Files on build 42169423328
  • Tree
  • List 41
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • cba84b12 on github
  • Prev Build on main (#42166418974)
  • Next Build on main (#42172182280)
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