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

stacklok / toolhive / 18689955159

21 Oct 2025 03:58PM UTC coverage: 47.611% (+0.06%) from 47.551%
18689955159

push

github

web-flow
MCPGroup support in k8s (#2247)

* MCPGroup types and controller

Implements MCPGroup types and k8s controller per [this proposal](https://github.com/stacklok/toolhive/blob/73707af47/docs/proposals/kubernetes-mcpgroup-crd.md).

The MCP group controller reconciles MCPGroup resources and watches for changes to MCPServer resources. When the latter happens, it requests reconciliation of the server's referenced MCPGroup.

The MCP server controller checks the groupRef during reconciliation and sets status conditions accordingly (no fatal error if the groupRef is invalid).

Generated code and manifests.
```console
toolhive % task operator-generate
toolhive % task task operator-manifests
```

Added unit, integration, and e2e (chainsaw) tests.
```console
toolhive % task operator-test
toolhive % task operator-test-integration
toolhive % task operator-e2e-test
```

* Address PR feedback

- Add observedGeneration to status updates
- Add finalizer to MCPGroup
- Add conflict handling to status updates
- Sort server names for MCPGroup spec
- Update MCPServer status immediately after groupRef validation
- Add 'Ready' to MCPGroup printer columns
- Fix inconsistent constant naming
- Add MCPGroup short names to CRD
- Add field selector support

* Regenerate deepcopy and manifests

* Fix PR checks

- Linter errors
- CRD docs
- Helm chart versions

163 of 310 new or added lines in 5 files covered. (52.58%)

18597 of 39060 relevant lines covered (47.61%)

15.81 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/cmd/thv-operator/api/v1alpha1/zz_generated.deepcopy.go


Source Not Available

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