Repository navigation
Align REGISTRY.md with configYAML-only MCPRegistry spec - #5088
Merged
Merged
Conversation
The v1beta1 MCPRegistrySpec exposes only configYAML, volumes, volumeMounts, pgpassSecretRef, displayName, and podTemplateSpec since #4705. REGISTRY.md was still documenting the typed sources[] / git / configMapRef / api / filter / syncPolicy fields directly under spec, which no longer exist on the CRD. - Rewrite Quick Start to use a minimal Kubernetes source via configYAML. - Add a Spec Reference table covering the actual CRD fields and a brief description of what lives inside configYAML. - Restructure Data Sources into Kubernetes / ConfigMap+file / Git / API subsections, each with a configYAML example. Move Git private-repo auth onto passwordFile + volumes/volumeMounts. - Add a PostgreSQL Authentication section covering pgpassSecretRef. - Update Filtering, Sync Operations, and Secret Management to reflect the configYAML path. - Replace the four legacy Examples blocks with a table linking to the canonical examples in examples/operator/mcp-registries/, and fix the See Also link to the renamed git-auth example. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> Signed-off-by: Radoslav Dimitrov <[email protected]>
rdimitrov
requested review from
ChrisJBurns,
JAORMX,
jerm-dro,
jhrozek and
yrobla
as code owners
April 28, 2026 11:51
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5088 +/- ##
==========================================
+ Coverage 69.76% 69.82% +0.06%
==========================================
Files 570 570
Lines 56919 56919
==========================================
+ Hits 39707 39743 +36
+ Misses 14168 14130 -38
- Partials 3044 3046 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jhrozek
approved these changes
Apr 28, 2026
jhrozek
left a comment
Contributor
There was a problem hiding this comment.
Verified the rewrite against the v1beta1 CRD (cmd/thv-operator/api/v1beta1/mcpregistry_types.go), the generated CRD YAML, and the six referenced example files in examples/operator/mcp-registries/. Spec Reference table matches the actual fields, pgpassSecretRef story is accurate, and the renamed mcpregistry-configyaml-git-auth.yaml link resolves.
Two non-blocking nits, fine to address in a follow-up:
REGISTRY.md:498-505still listsSyncingin the phase enumeration. The earlier "Sync Status" block (lines 128-132) was correctly trimmed to the four real phases (Pending/Ready/Failed/Terminating); this duplicate listing was missed. Either drop it or fix it.- The "Multiple sources" example near the bottom uses a
file:source but omits the volume/volumeMount with a "omitted for brevity" comment. Easy to copy-paste into something that won't sync. Worth either including the volume or swapping the second source for one that's self-contained.
Approving — the alignment work is solid.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The v1beta1
MCPRegistrySpechas exposed onlyconfigYAML,volumes,volumeMounts,pgpassSecretRef,displayName, andpodTemplateSpecsince #4705 dropped the legacy typed fields.cmd/thv-operator/REGISTRY.mdwas still documenting the deprecated typed shape —spec.sources[].configMapRef,spec.sources[].git,spec.sources[].api,spec.sources[].filter,syncPolicydirectly underspec— which no longer exist on the CRD. This PR realigns the doc with the current CRD and the canonical examples inexamples/operator/mcp-registries/.Follow-up to #5087 (the reviewer flagged this as worth a separate alignment pass).
configYAML.configYAMLcontains (sources,registries,database,auth).file:) / Git / API subsections, each showing a completeconfigYAMLexample. Git private-repo auth moves frompasswordSecretReftopasswordFile+volumes/volumeMounts.pgpassSecretRef, with the rationale for why it is a dedicated field.configYAMLpath.examples/operator/mcp-registries/, and fixes the See Also link that pointed at the deletedmcpregistry-git-private.yaml.Type of change
Test plan
cmd/thv-operator/api/v1beta1/mcpregistry_types.go(ConfigYAML,Volumes,VolumeMounts,PGPassSecretRef,DisplayName,PodTemplateSpec).examples/operator/mcp-registries/(minimal, configmap, git-auth, api, pgpass).configMapRef:,passwordSecretRef:,format: toolhive, ortoolhive-legacy-registryin the doc.Does this introduce a user-facing change?
Documentation only. No code or behavior change.
🤖 Generated with Claude Code