-
Notifications
You must be signed in to change notification settings - Fork 203
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
Add --run-file support for stdin #1364
Add --run-file support for stdin #1364
Conversation
NOTE: I haven't added tests to this as it wasn't clear to me how I would set up stdin in a test (although the code is pretty simple) |
b3f2019
to
9a2a66b
Compare
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.
Thanks for the contribution.
If the run-file argument is speficied as '-', read the config file from stdin Signed-off-by: Stuart Leeks <[email protected]>
9a2a66b
to
5a04ffd
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1364 +/- ##
=======================================
Coverage 22.76% 22.76%
=======================================
Files 40 40
Lines 4713 4713
=======================================
Hits 1073 1073
Misses 3562 3562
Partials 78 78 ☔ View full report in Codecov by Sentry. |
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.
LGTM
@stuartleeks We might want to include this way of running in our docs too.
@pravinpushkar -I'm happy to look at a PR to the docs to include this |
I've created a PR for the related docs update: dapr/docs#3872 Let me know if there's anything else needed to merge this PR - thanks! |
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.
lgtm.
Description
Update
run
command so that if the--run-file
argument is speficied as-
the config file is read from stdin.This is the same idea as
kubectl apply -f -
and allows the configuration to be generated by some other means (e.g. by applying values to a template version of the file).Issue reference
We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.
Please reference the issue this PR will close: #[issue number]
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list: