Shubham Sharma
8d79ef13ec
Nit: appHealthEnabled => enableAppHealth ( #1087 )
...
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-10-09 23:21:34 -07:00
Alessandro (Ale) Segala
657310541a
Add flags for app health checks ( #1083 )
...
* Add flags for app health checks
Fixes #1082
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
* Added tests
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
* 💄
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
* Update pkg/standalone/run_test.go
Co-authored-by: Shubham Sharma <shubhash@microsoft.com>
Signed-off-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>
* Update pkg/standalone/run_test.go
Co-authored-by: Shubham Sharma <shubhash@microsoft.com>
Signed-off-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>
* fix go version to 1.19.2
Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Signed-off-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>
Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Co-authored-by: Shubham Sharma <shubhash@microsoft.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-10-09 21:59:18 -07:00
Shubham Sharma
f7e2b5f7ef
Make internal-grpc-port option configurable ( #1040 )
...
* Added internal-grpc-port to standalone run options
Signed-off-by: Jigar R Gandhi <jigarr.gandhi@gmail.com>
* Use lib for freeport and accept cmdline args
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
* Add validate logic for port
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
* Add e2e test
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
Co-authored-by: Jigar R Gandhi <jigarr.gandhi@gmail.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-08-09 13:47:11 +05:30
Huei Feng
b85eee44d5
adding dapr-http-read-buffer-size parameter to cli ( #993 )
...
* Modify path DaprRoot add the SystemDrive environment variable
Signed-off-by: HueiFeng <695979933@qq.com>
* Script for docker install instead of actions-setup-docker (#986 )
* Script for docker install instead of actions-setup-docker
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
* trigger pr checks
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
Signed-off-by: HueiFeng <695979933@qq.com>
* Format output of dapr --version as JSON. (#878 )
* Format output of dapr --version as JSON.
Signed-off-by: fanfanbj <fanfanbj@outlook.com>
* Format output of dapr --version as JSON.
Signed-off-by: fanfanbj <fanfanbj@outlook.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
Signed-off-by: HueiFeng <695979933@qq.com>
* Fix for panic during upgrade of edge version dapr (#983 )
* Fix for panic during upgrade of edge version dapr
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
* change console log message
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
Signed-off-by: HueiFeng <695979933@qq.com>
* Add dapr annotate command (#873 )
* Add dapr inject command
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* Add additional opts
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* Update comment regarding injection
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* fix some linting issues (more to go)
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* use existing const in tests
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* fix some more linting
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* fix some more linting
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* udpate tests
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* udpate tests
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* add option to run against a URL
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* refactor cmd/inject.go slightly
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* update example text
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* autogenerate appid if not present
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* Update comment
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* Add support for target namespace
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* Update comment
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* Add warning about app id generation to usage
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* fix linting issues
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* rename inject to annotate
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* go mod tidy
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* fix lint
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* update --help URL
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* add README.md seciton
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
Signed-off-by: HueiFeng <695979933@qq.com>
* Update go version to 1.18 (#982 )
* Update go version to 1.18
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
* Bumping golangci-lint
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
Signed-off-by: HueiFeng <695979933@qq.com>
* adding dapr-http-read-buffer-size parameter to cli
Signed-off-by: HueiFeng <695979933@qq.com>
Co-authored-by: Pravin Pushkar <ppushkar@microsoft.com>
Co-authored-by: FanBin <fanfanbj@outlook.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
Co-authored-by: Joni Collinge <jonathancollinge@live.com>
2022-06-09 10:29:43 +05:30
amulyavarote
3684654834
Changed API logging feature on CLI ( #936 )
...
* Changed API logging feature on CLI
Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>
* Chnaged based on the review comments
Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>
* Changes based on the review comments in test
Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>
* change to 1.7.0-rc.2
Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
* fix linter errors
Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
* fix method name
Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-03-30 12:27:32 +05:30
amulyavarote
db56a250bc
Added api-log-level flag to log api calls ( #903 )
...
* Added api-log-level flag to log api calls
Signed-off-by: Amulya Varote <amulyavarote@QTM-SWATHIKIL-1.redmond.corp.microsoft.com>
Signed-off-by: Amulya Varote <amulyavarote@Amulyas-MacBook-Pro.local>
* Added api-log-level to README
Signed-off-by: Amulya Varote <amulyavarote@QTM-SWATHIKIL-1.redmond.corp.microsoft.com>
Signed-off-by: Amulya Varote <amulyavarote@Amulyas-MacBook-Pro.local>
* Removed the test case for api-log-level
Signed-off-by: Amulya Varote <amulyavarote@Amulyas-MacBook-Pro.local>
* Removed Readme changes
Signed-off-by: Amulya Varote <amulyavarote@Amulyas-MacBook-Pro.local>
* Added back all the changes
Signed-off-by: Amulya Varote <amulyavarote@Amulyas-MacBook-Pro.local>
* Updated dapr RC version
Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>
* kind e2e changes
Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>
* Changed README file
Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>
* Changed dashboard version
Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>
* Fixing Go mod tidy.
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
* Reverted dashboard version
Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>
* Reverted dashboard version
Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>
* Changed dapr dashboard link
Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>
* Changed dapr dashboard link
Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>
* Changed version extract link for kind
Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>
* Changed version extract link for self hosted
Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>
* defined variable in kind
Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>
* stadalone e2e test for api log level
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
Co-authored-by: Amulya Varote <amulyavarote@Amulyas-MacBook-Pro.local>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Pravin Pushkar <ppushkar@microsoft.com>
2022-03-29 17:34:58 +05:30
Shubham Sharma
9472e6d977
Make CLI exit with error code if dapr run or invoke fails ( #905 )
...
* Make CLI exit with error code if dapr or app run fail
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
* Fail when run command returns error
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
* Fix test run e2e test
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
* Fix e2e test cases
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
* Add exit code for invoke
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
* Add exit with error code for process kill failure
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
* Add e2e test for invoke failure
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
* Invoke invalid app id
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
* Add another error message in e2e test
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-03-09 19:29:21 +05:30
tanvigour
050eb553f2
Go linter upgrade to 1.44.2 ( #908 )
...
* Go linter upgrade to 1.44
Signed-off-by: tanvigour <tanvi.gour@gmail.com>
* remove old excludes and address new ones
Signed-off-by: tanvigour <tanvi.gour@gmail.com>
2022-03-07 13:18:48 +05:30
Anh Le (Andy)
092b93df57
Run: pass missing env variables ( #860 )
...
- In the past, I openned this PR: https://github.com/dapr/cli/pull/770
- DCO had some complaints.
- I incorrectly rebased.
- This PR is made by forking the master branch, modifying related files
Signed-off-by: Andy Le <anhldbk@gmail.com>
2022-01-03 09:27:02 -08:00
Dmitry Shmulevich
0f9d0d3a89
replaced license headers ( #855 )
...
Signed-off-by: Dmitry Shmulevich <dmitry.shmulevich@gmail.com>
2021-12-10 08:09:09 +05:30
amulyavarote
c2ff74370f
Added a warning message for unix domain socket ( #822 )
...
* Added a warning message for unix domain socket
* Added socket warning message to invoke and publish
* Corrected socket name in publish cmd
* Corrected the variable names for invoke and publish
* Removed unused variables port and grpcPort from invoke and publish
* Cleaned up the error of warning messages
* Cleaned up the wording of warning messages
* Cleaned up the wording of warning messages
* Cleaned up the wording of warning messages on run, invoke and publish
* Modified the warning message
Co-authored-by: Amulya Varote <amulyavarote@Amulyas-MacBook-Pro.local>
Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2021-11-12 12:40:42 -08:00
Long Dai
4ccf10f9e4
ci: standard linter config ( #793 )
...
Signed-off-by: Long <long0dai@foxmail.com>
Signed-off-by: Long <long.dai@intel.com>
2021-11-01 19:01:51 +05:30
Long Dai
4d75238be8
runtime: support unix domain socket ( #788 )
...
* runtime: support unix domain socket
Signed-off-by: Long <long.dai@intel.com>
* feedback
Signed-off-by: Long <long.dai@intel.com>
* update example
Signed-off-by: Long <long.dai@intel.com>
2021-10-27 13:45:34 -07:00
Long Dai
909b989128
log error info to stderr ( #750 )
...
Signed-off-by: Long Dai <long0dai@foxmail.com>
Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-08-24 23:32:19 -07:00
Dmitry Shmulevich
0a37376658
Allow to specify port in placement-host-address ( #746 )
...
* Allow to specify port in placement-host-address
* Update cmd/run.go
Co-authored-by: Charlie Stanley <charlie.stanley@microsoft.com>
Co-authored-by: Charlie Stanley <charlie.stanley@microsoft.com>
2021-06-29 09:22:15 -07:00
Anatoliy
f22233b0da
adding dapr-http-max-request-size parameter to cli ( #703 )
...
Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-05-14 07:43:28 -07:00
Phil Kedy
05c39b97eb
Removing `\n` because a newline is printed by Println
2021-04-22 12:26:07 -04:00
Charlie Stanley
328a6f99f1
CLI run should detect that either daprd or the app has exited and clean up
2021-04-02 14:54:02 -07:00
meijin
ced4c64d80
when start app error try to stop daprd process ( #646 )
...
Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>
2021-04-02 09:10:59 -07:00
Charlie Stanley
4ad42fffbc
Use a named event for dapr stop on Windows ( #631 ) ( #638 )
2021-03-22 15:46:41 -07:00
Yaron Schneider
3ee9e53338
add renewed headers ( #588 )
2021-02-10 08:37:08 -08:00
landlord
fdcae84837
feat: add metrics_port flag ( #555 )
...
Co-authored-by: 李锐 <lirui@meican.com>
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-01-06 11:50:10 -08:00
Yaron Schneider
3ae4ae2acf
preserve daprd log output ( #559 )
2020-12-15 13:47:58 -08:00
Mukundan Sundararajan
8581493ce8
Add dotnet run example
2020-12-11 16:13:20 -08:00
Mukundan Sundararajan
51bbd0a171
updated help messages. provide example for commands. ( #544 )
2020-12-08 12:04:11 -08:00
Mukundan Sundararajan
d4e8c54456
remove image flag from run command. ( #543 )
2020-12-07 16:32:34 -08:00
Mukundan Sundararajan
2495648629
Make flags consistent across commands. ( #541 )
...
update help messages
2020-12-03 14:32:39 -08:00
Yaron Schneider
3968200ca9
Update deprecated commands ( #502 )
...
* update deprecated commands
* update tests
2020-11-02 10:21:54 -08:00
Artur Souza
6a303e71f7
Rewording of help messages. ( #501 )
...
* Delete reference docs, since docs website has those now.
* Rewording of help messages.
2020-10-29 16:08:21 -07:00
Yaron Schneider
1da60115e2
Add ssl command to dapr run ( #498 )
...
* add ssl command to dapr run
* update docs
* update docs
2020-10-22 13:44:45 -07:00
Yaron Schneider
71c4525b2c
Refactor invoke and remove deprecated commands ( #492 )
...
* refactor invoke and remove deprecated commands
* fix lint
* fix lint
* add delete and put tests
2020-10-16 10:49:13 -07:00
Mukundan Sundararajan
24ca35d78b
Upgrade to linter v1.31.0 ( #447 )
...
* Upgrade to linter v1.30.0
* Remove --fix from lint
* Fix linter issues
* use golang-ci lint action
* Fix linter version
* add linter patch version
* remove linter patch version
2020-10-07 17:24:12 -07:00
Artur Souza
604c968af1
Waits for dapr sidecar before running app without port. ( #461 )
2020-09-15 19:11:24 -07:00
Mukundan Sundararajan
4e167f03e6
Fix logs on error ( #448 )
2020-08-27 11:01:56 -07:00
Pruthvidhar R Dhodda
35b9a824d2
Normalize "dapr run" flags ( #420 )
...
* Normalize flags
* deprecate port, grpc-port, placement-host
* Fix build
* Add short hands for protocols
Co-authored-by: Aman Bhardwaj <amanbha@users.noreply.github.com>
2020-08-10 11:49:04 -07:00
Mukundan Sundararajan
a82a7487b5
Add Zipkin on dapr init. Add tracing config, zipkin component on init. ( #377 )
...
* Add Zipkin on dapr init. Add tracing config, zipkin component on initial run.
* Fix uninstallAll check
* Move zipkin config to init
* Default run parameter for config
* Updated Readme and dapr run reference
* Address review comments.
* Updated Readme, cli reference
* Address review comments
* Change uninstall cli ref doc
2020-06-22 09:25:10 -07:00
vinayada1
0afc366697
init creates the default component files #371 ( #373 )
...
* init creates the default component files #371
* fix review comments
* fix review comments - 2
* Upgrade to linter version 1.26.0 (#381 )
* init creates the default component files #371
* fix review comments
* fix review comments - 2
* Fix linter error
Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>
2020-06-16 10:18:53 -07:00
Aman Bhardwaj
a9a8bc3ac2
passing components folder to daprd ( #367 )
...
* passing components folder to daprd
* fixing tests
* fixing tests
* using cli flag to set default value for components path
* fixing build
* linter
* linter
* fixing tests
2020-06-05 21:33:57 -07:00
Artur Souza
c37118166b
Fix components path help message. ( #364 )
2020-06-05 18:32:55 -07:00
Aman Bhardwaj
15a3ffa1d7
Revert usage of enableJSONSecretStore flag. ( #358 )
...
* Revert "Implementing #344 (#347 )"
This reverts commit 98f8818260
.
* Fixing linter issue.
2020-06-04 15:55:26 -07:00
Carlos Mendible
98f8818260
Implementing #344 ( #347 )
...
* Implementing #344
* renamed flag to enable-json-secretstore
2020-05-27 20:51:09 -07:00
Sashi Kumar
4cec1ba714
Add flag to provide custom components directory path for dapr run ( #326 )
...
Add default to usage description
2020-05-11 14:50:29 -07:00
Ben Coleman
2e607cb6de
minor fix to log-level help text for `dapr run` ( #320 )
2020-04-25 04:58:17 -07:00
Artur Souza
422094a59c
Fix 'dapr list' to include cli PID and info ( #298 )
2020-03-10 19:24:12 -07:00
Artur Souza
eb76cbf220
Stateless version of `dapr list`. ( #289 )
2020-03-09 16:19:05 -07:00
Artur Souza
e70f84b03e
Allows run without app and daemon mode for Unix-based OS. ( #276 )
2020-02-24 14:30:40 -08:00
Young Bu Park
f84566fb2b
Enable linter and fix all linter errors ( #241 )
...
* Enable golangci linter
* remove gomnd
* upgrade golang lint
* upgrade go to 1.13.7
* fix messages
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2020-02-03 09:07:32 -08:00
Greg Ingram
e759a815ed
Capitalized Dapr and uppercase CLI ( #215 )
...
* Capitalized Dapr
* Fixed wording
* Uppercase CLI
* Missed capitalized Dapr
* Fix uninstall description
2019-11-25 09:37:45 -08:00
Phillip Hoff
65555f5cb8
Allow setting flags via environment variables ( #210 )
...
* Use viper to pull flags from environment variable.
* Allow Docker network be specified via environment variable.
* Sketch Dapr init/run CLI command reference.
* Sketch remainder of Dapr CLI command docs.
* Add note re: environment variables.
2019-11-20 10:29:53 -08:00
Phillip Hoff
997ab8ce38
Allow installation of Dapr runtime into a specific Docker network ( #192 )
...
* Allow option to specify Docker network for containers.
* Add network aliases when on a specific network
* Allow Redis and placement server hosts be specified
* Don't expose container ports when on explicit network
* Use a network-specific container name.
* Update docs.
* Update per PR feedback.
2019-11-06 10:17:55 -08:00