Commit f7e69fc
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 <[email protected]>
Co-authored-by: Jakub Hrozek <[email protected]>1 parent 71de38f commit f7e69fc
File tree
3 files changed
+557
-6
lines changed- cmd/thv-operator
- controllers
- test-integration/virtualmcp
3 files changed
+557
-6
lines changedLines changed: 61 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1717 | 1717 | | |
1718 | 1718 | | |
1719 | 1719 | | |
1720 | | - | |
| 1720 | + | |
| 1721 | + | |
1721 | 1722 | | |
1722 | 1723 | | |
1723 | 1724 | | |
| |||
1773 | 1774 | | |
1774 | 1775 | | |
1775 | 1776 | | |
1776 | | - | |
1777 | | - | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
1778 | 1781 | | |
1779 | 1782 | | |
1780 | 1783 | | |
1781 | 1784 | | |
1782 | 1785 | | |
1783 | 1786 | | |
1784 | 1787 | | |
| 1788 | + | |
1785 | 1789 | | |
1786 | 1790 | | |
1787 | 1791 | | |
| |||
1797 | 1801 | | |
1798 | 1802 | | |
1799 | 1803 | | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
1800 | 1858 | | |
1801 | 1859 | | |
1802 | 1860 | | |
| |||
0 commit comments