-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support rendering template when set "--local" option #1596
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Thanks for the PR! This is indeed a very useful feature. However, I feel the arguments are getting a little too complex. How about:
So that the |
And... Would you like to also add the same feature to |
Codecov Report
@@ Coverage Diff @@
## master #1596 +/- ##
===========================================
+ Coverage 15.71% 50.72% +35.01%
===========================================
Files 149 290 +141
Lines 15098 26486 +11388
===========================================
+ Hits 2372 13434 +11062
+ Misses 12208 11032 -1176
- Partials 518 2020 +1502
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@AstroProfundis Thank you for your comments.
Skelton default values are set by cobra functions. (same as --full or --local, etc)
I think that it is a bit hard to render a template completely. (especially full template) So I suggest and agree replacing
OK, I'll try. |
Sounds good. I'm just feeling that |
d3786a7
to
e9df44a
Compare
Now supports |
e72cc31
to
4524911
Compare
4524911
to
0cbbf61
Compare
rebased |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 0cbbf61
|
Sorry. I fixed ioutil package. |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: b25d926
|
What problem does this PR solve?
tiup cluster template
prints example yaml file.I think that it is more useful if users can specify global values or servers in topology.yaml.
This PR enables generating sample topology.yaml with specify variables.
What is changed and how it works?
When set
--local
, it renders a template with some overridden variables such asglobal.user
,global.group
, etc by setting--user
,--group
and so on together.This is sample output:
And also support
tiup dm template --local
.Check List
Tests
Code changes
Side effects
Related changes
Release notes: