Skip to content

removes MCPRegistry datasources from Operator - #2568

Merged
ChrisJBurns merged 6 commits into
mainfrom
removes-datasources
Nov 13, 2025
Merged

ChrisJBurns merged 6 commits into
mainfrom
removes-datasources

Conversation

@ChrisJBurns

@ChrisJBurns ChrisJBurns commented Nov 13, 2025 •

Copy link
Copy Markdown
Collaborator

The datasources code has been moved into the registry api. This PR removes the data sources code from the Operator.

There next PR is to remove the sync capability. In this PR I have also disabled an integration test because currently the Operator doesn't pass in the relevant flags to the registry api that results in a healthy deployment - therefore causing the assertions to fail. This will be fixed in a later PR where we add this functionality back with the new registry server flags.

Ref: #2399

as part of the moving of code from the operator to the registry api, the
storage configmap will be refactored later on into mounting the registry
json ONLY if it's specified as a configmap.

Signed-off-by: ChrisJBurns <[email protected]>
Signed-off-by: ChrisJBurns <[email protected]>
@codecov

codecov Bot commented Nov 13, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 30.00000% with 21 lines in your changes missing coverage. Please review.
✅ Project coverage is 54.70%. Comparing base (cead1c3) to head (22b2cf9).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
cmd/thv-operator/pkg/sync/manager.go 23.52% 13 Missing ⚠️
...thv-operator/controllers/mcpregistry_controller.go 0.00% 6 Missing ⚠️
cmd/thv-operator/pkg/registryapi/deployment.go 60.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2568      +/-   ##
==========================================
- Coverage   55.95%   54.70%   -1.25%     
==========================================
  Files         316      304      -12     
  Lines       29766    28746    -1020     
==========================================
- Hits        16655    15726     -929     
+ Misses      11652    11616      -36     
+ Partials     1459     1404      -55     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ChrisJBurns ChrisJBurns changed the title Removes datasources removes MCPRegistry datasources from Operator Nov 13, 2025
@ChrisJBurns
ChrisJBurns marked this pull request as ready for review November 13, 2025 15:11
I've had to modify some existing code in order to satisfy lint and
tests. some of this will get put back in a later PR

Signed-off-by: ChrisJBurns <[email protected]>
Comment thread cmd/thv-operator/README.md Resolved
Comment thread cmd/thv-operator/REGISTRY.md Resolved
@ChrisJBurns
ChrisJBurns merged commit b19d1d6 into main Nov 13, 2025
@ChrisJBurns
ChrisJBurns deleted the removes-datasources branch November 13, 2025 16:03
ChrisJBurns added a commit that referenced this pull request Apr 13, 2026
The enforceServers feature and its image validation code have been
broken since PR #2568 removed the data sources from the operator. The
{name}-registry-storage ConfigMap that image validation reads from is
never created — nothing populates it. As a result, enforceServers has
silently done nothing: the ConfigMap lookup returns NotFound and
checkImageInRegistry returns false for every check.

Remove the entire feature rather than attempting to fix it:
- Remove EnforceServers field from MCPRegistrySpec CRD
- Remove GetStorageName() helper (dead since sources removal)
- Delete image_validation.go and its tests
- Remove image validation call sites from MCPServer and
  EmbeddingServer controllers
- Remove ConditionImageValidated and related status constants
- Remove getConfigMapName from registryapi
- Delete the enforcing example
- Regenerate CRD manifests

Fixes #4717

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
ChrisJBurns added a commit that referenced this pull request Apr 13, 2026
The enforceServers feature and its image validation code have been
broken since PR #2568 removed the data sources from the operator. The
{name}-registry-storage ConfigMap that image validation reads from is
never created — nothing populates it. As a result, enforceServers has
silently done nothing: the ConfigMap lookup returns NotFound and
checkImageInRegistry returns false for every check.

Remove the entire feature rather than attempting to fix it:
- Remove EnforceServers field from MCPRegistrySpec CRD
- Remove GetStorageName() helper (dead since sources removal)
- Delete image_validation.go and its tests
- Remove image validation call sites from MCPServer and
  EmbeddingServer controllers
- Remove ConditionImageValidated and related status constants
- Remove getConfigMapName from registryapi
- Delete the enforcing example
- Regenerate CRD manifests

Fixes #4717

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
ChrisJBurns added a commit that referenced this pull request Apr 13, 2026
* Remove enforceServers and image validation from MCPRegistry

The enforceServers feature and its image validation code have been
broken since PR #2568 removed the data sources from the operator. The
{name}-registry-storage ConfigMap that image validation reads from is
never created — nothing populates it. As a result, enforceServers has
silently done nothing: the ConfigMap lookup returns NotFound and
checkImageInRegistry returns false for every check.

Remove the entire feature rather than attempting to fix it:
- Remove EnforceServers field from MCPRegistrySpec CRD
- Remove GetStorageName() helper (dead since sources removal)
- Delete image_validation.go and its tests
- Remove image validation call sites from MCPServer and
  EmbeddingServer controllers
- Remove ConditionImageValidated and related status constants
- Remove getConfigMapName from registryapi
- Delete the enforcing example
- Regenerate CRD manifests

Fixes #4717

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Remove enforceServers references from documentation

Update REGISTRY.md, architecture docs, and regenerate CRD API docs
to remove all references to the removed enforceServers feature and
the stale registry-storage ConfigMap.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Address PR review feedback

- Remove stale image validation troubleshooting from REGISTRY.md
- Remove stale image validation log reference from REGISTRY.md

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Address PR review feedback

- Remove "Provides image validation" from README.md feature list
- Replace fictional syncStatus/apiStatus status fields in REGISTRY.md
  with actual MCPRegistryStatus fields (phase, message, url,
  readyReplicas, conditions)
- Fix stale jsonpath examples in troubleshooting section

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants