docs: sealos create
support for environment variable based template rendering
#4224
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.
🤖 Generated by Copilot at 31fa465
Summary
📝🆕🌐
This pull request adds and documents a new option for the
sealos create
command that allows specifying environment variables for cluster creation. The changes affect both the English and Chinese documentation files indocs/4.0
.Walkthrough
-e, --env=[]
to thesealos create
command, which allows users to specify environment variables used during the rendering of template files (link, link)sealos create
command in thedocs/4.0/docs/self-hosting/lifecycle-management/reference/sealos/commands/create.md
anddocs/4.0/i18n/zh-Hans/self-hosting/lifecycle-management/reference/sealos/commands/create.md
files, adding the-e registryPort=8443
option and clarifying that the cluster is not actually run by the command (link, link)sealos create
command documentation, improving the clarity and accuracy of the information (link, link)refer to #3774
Supporting documentation:
https://sealos.io/docs/self-hosting/lifecycle-management/operations/build-image/build-image-go_template
https://sealos.io/docs/self-hosting/lifecycle-management/advanced-guide/template-function
https://sealos.io/docs/self-hosting/lifecycle-management/reference/sealos/app-cluster-image