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

stacklok / toolhive / 17787195909
51%

Build:
DEFAULT BRANCH: main
Ran 17 Sep 2025 05:05AM UTC
Jobs 1
Files 259
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

17 Sep 2025 05:00AM UTC coverage: 44.242% (+0.3%) from 43.953%
17787195909

push

github

web-flow
feat(operator): Add MCPServer restart annotation support (#1882)

* feat(operator): add restart annotation support with rolling and immediate strategies

- Implement restart trigger via mcpserver.toolhive.stacklok.dev/restarted-at annotation (RFC3339 timestamp)
- Support optional mcpserver.toolhive.stacklok.dev/restart-strategy annotation (rolling or immediate)
- Rolling strategy updates deployment for zero-downtime restart (default)
- Immediate strategy deletes pods for fast restart
- Track last processed restart in status.lastRestartRequest to prevent duplicate restarts
- Update docs and examples to reflect new annotation format and usage

Signed-off-by: Ola Adebayo <34113844+olamide226@users.noreply.github.com>

* feat(operator): add comprehensive tests for restart annotation reconciliation

Add first test suite for MCPServer restart annotation logic in the operator controller.
Covers rolling and immediate restart strategies, including edge cases (invalid timestamp, already processed, missing resources, unknown strategy).

Signed-off-by: Ola Adebayo <34113844+olamide226@users.noreply.github.com>

* feat(operator): Add MCPServer restart annotation support

Add restart functionality via annotations without CRD schema changes:
- Support mcpserver.toolhive.stacklok.dev/restarted-at annotation (RFC3339 timestamp)
- Support mcpserver.toolhive.stacklok.dev/restart-strategy annotation (rolling/immediate)
- Rolling strategy triggers zero-downtime deployment update (default)
- Immediate strategy deletes pods for fast restart
- Track last processed restart in annotations to prevent duplicates
- Update documentation and examples for new annotation usage

Resolves operator restart requirements while maintaining backward compatibility.

Signed-off-by: Ola Adebayo <34113844+olamide226@users.noreply.github.com>

* test(operator): Enhance MCPServer restart annotation tests with error handling

Signed-off-by: Ola Adebayo <olamideadebayo2001@gmail.com>

---------

Si... (continued)

105 of 112 new or added lines in 1 file covered. (93.75%)

25 existing lines in 3 files now uncovered.

14784 of 33416 relevant lines covered (44.24%)

16.34 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
7
66.97
6.61% cmd/thv-operator/controllers/mcpserver_controller.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
92.86
-1.43% pkg/secrets/keyring/composite.go
2
43.21
-0.26% pkg/workloads/manager.go
21
48.94
-22.34% pkg/secrets/keyring/keyctl_linux.go
Jobs
ID Job ID Ran Files Coverage
1 17787195909.1 17 Sep 2025 05:05AM UTC 259
44.24
GitHub Action Run
Source Files on build 17787195909
  • Tree
  • List 259
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17787195909
  • 24a2f374 on github
  • Prev Build on main (#17786988051)
  • Next Build on main (#17799760864)
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