-
Notifications
You must be signed in to change notification settings - Fork 312
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
cluster: add subcommand pull and push to transfer files #1044
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1044 +/- ##
==========================================
+ Coverage 55.80% 55.92% +0.11%
==========================================
Files 280 282 +2
Lines 19759 19860 +101
==========================================
+ Hits 11026 11106 +80
- Misses 7029 7032 +3
- Partials 1704 1722 +18
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
69a5f6d
to
9c09b4e
Compare
Please add some test for this. |
} | ||
|
||
func renderSpec(t string, s interface{}, id string) (string, error) { | ||
tpl, err := template.New(id).Option("missingkey=error").Parse(t) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have write a playground, this should work: https://play.golang.org/p/ZP1fQgRmkFM
/lgtm |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 50b5b49
|
What problem does this PR solve?
Add a pair of subcommand
pull
/push
tocluster
, theseadb
style commands are used to transfer files from or to servers in the cluster.Fields in node component specification can be used as template for remote paths.
Check List
Tests
Code changes
Side effects
Release notes: