Commit 500ab99
Remove stale OIDCConfigRefValidated condition when ref is cleared
When OIDCConfigRef is removed from an MCPRemoteProxy, the condition
was left behind in status. Now calls meta.RemoveStatusCondition to
match the pattern used by handleToolConfig and handleExternalAuthConfig.
Integration test updated to assert the condition is removed.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 91ce68d commit 500ab99
2 files changed
Lines changed: 9 additions & 3 deletions
File tree
- cmd/thv-operator
- controllers
- test-integration/mcp-oidc-config
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
722 | | - | |
| 722 | + | |
| 723 | + | |
723 | 724 | | |
724 | 725 | | |
725 | 726 | | |
| |||
cmd/thv-operator/test-integration/mcp-oidc-config/mcpoidcconfig_mcpremoteproxy_integration_test.go
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
716 | 716 | | |
717 | 717 | | |
718 | 718 | | |
719 | | - | |
| 719 | + | |
720 | 720 | | |
721 | 721 | | |
722 | 722 | | |
| |||
726 | 726 | | |
727 | 727 | | |
728 | 728 | | |
729 | | - | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
730 | 735 | | |
731 | 736 | | |
732 | 737 | | |
| |||
0 commit comments