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

stacklok / toolhive / 22667583280

04 Mar 2026 11:34AM UTC coverage: 63.745% (-0.01%) from 63.759%
22667583280

push

github

web-flow
Enable sticky sessions on operator-created Services (#3986)

* Enable sticky sessions on operator-created Services

MCP servers use stateful session protocols (SSE, streamable-http).
When replicas > 1, Kubernetes round-robin routing breaks sessions.
Set SessionAffinity: ClientIP on all operator-created Services
(MCPServer, MCPRemoteProxy, VirtualMCPServer) so requests from
the same client consistently reach the same backend pod.

Also add drift detection in serviceNeedsUpdate() and copy
SessionAffinity in the ensureService update paths so existing
Services get reconciled.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Update operator architecture docs for SessionAffinity

Document that all operator-created Services use
SessionAffinity: ClientIP to support stateful MCP sessions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

12 of 19 new or added lines in 5 files covered. (63.16%)

89 existing lines in 4 files now uncovered.

46519 of 72977 relevant lines covered (63.74%)

75.56 hits per line

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

69.2
/cmd/thv-operator/controllers/virtualmcpserver_controller.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

© 2026 Coveralls, Inc