fix(template): preserve separated manifests and assets - #7226
Merged
cuisongliu merged 3 commits intoAug 16, 2026
Conversation
cuisongliu
approved these changes
Aug 16, 2026
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
Fix template deployments and catalog/instance asset responses for repositories that separate template metadata from Kubernetes manifests. The provider now loads nested
manifests/**/*.yamlfiles, excludes them from catalog indexing, and proxies repository-hosted icons through a browser-compatible asset endpoint. The template repository layout is documented and focused unit coverage is included.Verification
git diff --check origin/release-v5.1...HEADpassed.@sealos/gtmis unavailable, and Vitest is not declared or installed in the workspace.Sequence Diagram
sequenceDiagram participant Browser participant TemplateAPI participant Repo as Template Repository participant AssetAPI Browser->>TemplateAPI: Request template or instance data TemplateAPI->>Repo: Read index metadata and nested manifests Repo-->>TemplateAPI: Return deployment source and asset references TemplateAPI->>AssetAPI: Rewrite repository icon URL AssetAPI-->>Browser: Serve icon with browser-compatible response TemplateAPI-->>Browser: Return separated deployment source and metadata