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

stacklok / toolhive / 18785503255
51%

Build:
DEFAULT BRANCH: main
Ran 24 Oct 2025 04:16PM UTC
Jobs 1
Files 298
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

24 Oct 2025 04:11PM UTC coverage: 47.142% (-0.05%) from 47.189%
18785503255

push

github

web-flow
Fix MCPServer and MCPRemoteProxy operator spec change reconciliation (#2320)

Both MCPServer and MCPRemoteProxy operators were not properly reconciling
spec changes, requiring users to delete and recreate resources to apply
configuration updates. This fixes the issue by adding ConfigMap checksum
tracking to pod template annotations.

Changes:
- Create shared RunConfigChecksumFetcher in pkg/controllerutil
- Add RunConfig ConfigMap checksum to pod template annotations for both operators
- Trigger automatic pod restarts when configuration changes
- Add constants for checksum annotation keys
- Refactor deploymentNeedsUpdate() in both controllers to check pod template annotations
- Add comprehensive error handling and nil guards
- Handle ConfigMap not found during initial creation with 5-second requeue delay
- Update all tests to pass checksum parameter

The fix ensures that any spec change (OIDC config, authz, telemetry, tool
filters, image, etc.) properly propagates to running pods through Kubernetes
rolling updates, enabling declarative GitOps workflows.

Fixes #2314

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>

48 of 141 new or added lines in 4 files covered. (34.04%)

1 existing line in 1 file now uncovered.

18802 of 39884 relevant lines covered (47.14%)

15.51 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
30
56.11
-0.85% cmd/thv-operator/controllers/mcpserver_controller.go
31
61.52
-1.76% cmd/thv-operator/controllers/mcpremoteproxy_controller.go
32
50.59
-30.54% cmd/thv-operator/pkg/runconfig/configmap/checksum/checksum.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
56.11
-0.85% cmd/thv-operator/controllers/mcpserver_controller.go
Jobs
ID Job ID Ran Files Coverage
1 18785503255.1 24 Oct 2025 04:16PM UTC 298
47.14
GitHub Action Run
Source Files on build 18785503255
  • Tree
  • List 298
  • Changed 5
  • Source Changed 4
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #18785503255
  • 915c1e50 on github
  • Prev Build on main (#18785155635)
  • Next Build on main (#18786402642)
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

© 2025 Coveralls, Inc