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

stacklok / toolhive / 20082269667

09 Dec 2025 11:48PM UTC coverage: 49.514% (+0.03%) from 49.487%
20082269667

push

github

web-flow
Fix VirtualMCPServer reconciliation for discovered auth config updates (#2957)

* Fix VirtualMCPServer reconciliation for discovered auth config updates

When an MCPExternalAuthConfig is updated, VirtualMCPServer resources
should reconcile to pick up the changes. However, the watch handler only
checked inline references in the VirtualMCPServer.Spec.OutgoingAuth field
and ignored discovered references when source: discovered mode is used.

In discovered mode, auth configs are referenced through MCPServer
resources in the group rather than inline in the VirtualMCPServer spec.
The watch handler now checks both inline and discovered references by
listing MCPServers in the group and checking if any reference the
updated MCPExternalAuthConfig.

This ensures that VirtualMCPServers using discovered mode will properly
reconcile when their backend auth configurations change.

Fixes #2831

* changes from review

---------

Co-authored-by: taskbot <taskbot@users.noreply.github.com>
Co-authored-by: Jakub Hrozek <jakub.hrozek@posteo.se>

34 of 38 new or added lines in 1 file covered. (89.47%)

26652 of 53827 relevant lines covered (49.51%)

57.86 hits per line

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

67.67
/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