Skip to content

Align REGISTRY.md with configYAML-only MCPRegistry spec - #5088

Merged
rdimitrov merged 1 commit into
mainfrom
registry-md-configyaml-alignment
Apr 28, 2026
Merged

rdimitrov merged 1 commit into
mainfrom
registry-md-configyaml-alignment

Conversation

@rdimitrov

Copy link
Copy Markdown
Member

Summary

The v1beta1 MCPRegistrySpec has exposed only configYAML, volumes, volumeMounts, pgpassSecretRef, displayName, and podTemplateSpec since #4705 dropped the legacy typed fields. cmd/thv-operator/REGISTRY.md was still documenting the deprecated typed shape — spec.sources[].configMapRef, spec.sources[].git, spec.sources[].api, spec.sources[].filter, syncPolicy directly under spec — which no longer exist on the CRD. This PR realigns the doc with the current CRD and the canonical examples in examples/operator/mcp-registries/.

Follow-up to #5087 (the reviewer flagged this as worth a separate alignment pass).

  • Rewrites Quick Start to use a minimal Kubernetes source via configYAML.
  • Adds a Spec Reference table covering the actual CRD fields and a short description of what configYAML contains (sources, registries, database, auth).
  • Restructures Data Sources into Kubernetes / ConfigMap (file:) / Git / API subsections, each showing a complete configYAML example. Git private-repo auth moves from passwordSecretRef to passwordFile + volumes/volumeMounts.
  • Adds a PostgreSQL Authentication section covering pgpassSecretRef, with the rationale for why it is a dedicated field.
  • Updates Filtering, Sync Operations, and Secret Management to reflect the configYAML path.
  • Replaces the four legacy Examples blocks with a table that links to the canonical examples in examples/operator/mcp-registries/, and fixes the See Also link that pointed at the deleted mcpregistry-git-private.yaml.

Type of change

  • Documentation update

Test plan

  • Verified the new spec table matches cmd/thv-operator/api/v1beta1/mcpregistry_types.go (ConfigYAML, Volumes, VolumeMounts, PGPassSecretRef, DisplayName, PodTemplateSpec).
  • Cross-checked every YAML example against the canonical files in examples/operator/mcp-registries/ (minimal, configmap, git-auth, api, pgpass).
  • Confirmed no remaining references to configMapRef:, passwordSecretRef:, format: toolhive, or toolhive-legacy-registry in the doc.
  • All See Also link targets exist.

Does this introduce a user-facing change?

Documentation only. No code or behavior change.

🤖 Generated with Claude Code

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]>
@github-actions github-actions Bot added the size/L Large PR: 600-999 lines changed label Apr 28, 2026
@codecov

codecov Bot commented Apr 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.82%. Comparing base (061d7fb) to head (82a924f).
⚠️ Report is 9 commits behind head on main.

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.
📢 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.

@jhrozek jhrozek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-505 still lists Syncing in 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.

@rdimitrov
rdimitrov merged commit 1e4f71c into main Apr 28, 2026
69 of 72 checks passed
@rdimitrov
rdimitrov deleted the registry-md-configyaml-alignment branch April 28, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L Large PR: 600-999 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants