feat(eaglercraft-server): declare open and share entries in the Template spec - #758
Merged
yangchuansheng merged 1 commit intoSep 8, 2026
Conversation
…ate spec Add an optional `spec.entries` field to the Template metadata CR so a template can say which URL the platform opens after deployment and which URL it offers for sharing. Document the field in example.md and example_zh.md. EaglerCraft is the first template to use it: the operator lands on the admin console (`/admin`), while the address meant for players is the quick-join link (`/?server=wss://<host>/`). The bundled browser client opens with an empty server list, so a bare `/` link forces players to type the WebSocket address by hand; the quick-join link makes the client connect on its own. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012nPEVVc7yiShA1SrfuTUqM
yangchuansheng
approved these changes
Sep 8, 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.
What
Adds an optional
spec.entriesfield to the Template metadata CR and uses it in the EaglerCraft template.openurlof the template'skind: App, else the first public HTTP address at/shareopenWhy
EaglerCraft has two audiences on one host. The operator needs
/admin. Players need the game client, but the bundled EaglercraftX client opens with an empty Multiplayer list, so a bare/link forces them to typewss://<host>/by hand. The quick-join link (/?server=wss://<host>/, the same link the admin console's "Open and join game" button builds) makes the client connect on its own. Today the platform has no way to tell these two addresses apart.The field is Sealos-native and platform-agnostic: consumers that do not know it ignore it (both the Sealos template frontend and Brain pick spec fields by name). 212 of 256 templates already carry a
kind: Appwith aurl, which remains the fallback foropen, so no other template needs to change.Verification
python scripts/test_eaglercraft_runtime_refresh.py→ PASSindex.yamlstill parses as 6 documents;spec.entriesrenders with the expected${{ }}placeholders.Related
backend-protocol: WSmarker from the game Ingress.sharecan become the plain root URL.🤖 Generated with Claude Code
https://claude.ai/code/session_012nPEVVc7yiShA1SrfuTUqM