Commit Graph

207 Commits

Author SHA1 Message Date
Thorsten Hans fff7e75762
Allow setting container-runtime via env var for `dapr init` (#1251)
* Allow specifying container-runtime via env var for `dapr init` (#1210)

Signed-off-by: Thorsten Hans <thorsten.hans@gmail.com>

* pull default container runtime name from utils instead of introducing a new magic string

Signed-off-by: Thorsten Hans <thorsten.hans@gmail.com>

* Load config values in the order of  defaults, env vars, flags

Signed-off-by: Thorsten Hans <thorsten.hans@gmail.com>

* fix(config): load runtime version using proper name

Signed-off-by: Thorsten Hans <thorsten.hans@gmail.com>

---------

Signed-off-by: Thorsten Hans <thorsten.hans@gmail.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2023-03-16 17:51:02 +05:30
tianya 72551c95af
output help information when dapr has no parameters (#1255)
Signed-off-by: tianya <tianyax@outlook.com>
2023-03-08 21:26:54 +05:30
Pravin Pushkar 5e3546a351
Init with custom cert (#1249)
* Init with custom cert

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* review comments

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* remove key file

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

---------

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2023-03-02 13:31:13 +05:30
Mukundan Sundararajan a7f06c3b1b
Fix runtime custom path installation logic (#1203)
* fix dapr path version, custom  installation path logic, e2e

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 paths for windows

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* rename daprPath to daprRuntimePath

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

---------

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2023-02-05 21:57:23 -08:00
Phillip Hoff 50d5af4cd9
Store app PID in sidecar metadata. (#1200)
* Store app PID in sidecar metadata.

Signed-off-by: Phillip Hoff <phillip@orst.edu>

* Move process check under command check.

Signed-off-by: Phillip Hoff <phillip@orst.edu>

* Add minimal list test appId changes.

Signed-off-by: Phillip Hoff <phillip@orst.edu>

* Reverse params.

Signed-off-by: Phillip Hoff <phillip@orst.edu>

* Proper type conversion.

Signed-off-by: Phillip Hoff <phillip@orst.edu>

---------

Signed-off-by: Phillip Hoff <phillip@orst.edu>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2023-02-02 11:45:23 +05:30
Shubham Sharma 42f9519eb2
Add preview warning to dapr run and add appID and timestamp to logs (#1196)
* Add timestamp to logs and preview warning

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Fix test

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Update log format

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Update log format

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Update comment

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

---------

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
2023-02-01 16:19:48 +05:30
Pravin Pushkar 778b2a5933
dapr stop -f fix and E2E tests for dapr stop and list (#1181)
* E2E tests for dapr stop and list

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* cmdstop to cmdStopWithAppID

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* review comments

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* stop all started processes for dapr apps with kill process group

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* stop all apps in run template test

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* fix tests

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* separating os syscall and renaming file

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* moving syscall.go to pkg/syscall

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* name change

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* fixed windows error

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* use syscall.kill

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* review comments

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

---------

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2023-01-31 13:07:42 +05:30
Pravin Pushkar 7e00eb4f03
Fix dashboard port conflict message and allow starting on random port (#1189)
* fix dashboard start

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* added comments

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

---------

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
2023-01-31 10:35:02 +05:30
Mukundan Sundararajan 17dbe5bb13
Add E2E for Run template (#1170)
* refactor run into functions

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* renamed Apps struct as App

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* redirect logs to files. set informational logs. set command dirs

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 e2e test on non-existent resources-path

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* more fixes

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix merge conflict

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* set default ports for zero values

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>

* add more details in error, fix logs in run -f

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* address review comments

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* address review comments

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* add more fixes in template run based on e2e tests

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* add basic happy path e2e for dapr run -f

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* add positive and negative e2e tests for run template

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* address review comments

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2023-01-24 10:58:05 -08:00
Pravin Pushkar 14c04f9a87
Dapr stop and list changes for dapr run -f (#1169)
* dapr stop -f impl

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* add description

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* fix tests

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* fix windows failure

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Update cmd/stop.go

Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* review comments

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* review comments

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* change cmd description

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* stop refactoring

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* trigger pr checks

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2023-01-24 18:28:31 +05:30
Mukundan Sundararajan 36893d9483
Add capability to run to support `-f` flag (#1161)
* refactor run into functions

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* renamed Apps struct as App

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* redirect logs to files. set informational logs. set command dirs

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 e2e test on non-existent resources-path

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* more fixes

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix merge conflict

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* set default ports for zero values

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>

* add more details in error, fix logs in run -f

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* address review comments

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* address review comments

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* add more fixes in template run based on e2e tests

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2023-01-20 08:17:34 -08:00
Pravin Pushkar 9d18f86768
find dapr.yaml in dirpath when dapr run -f <dirpath> is executed (#1166)
* find dapr.yaml in dirpath when dapr run -f <dirpath> is executed

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* modtidy

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* get rid of afero

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* review comments

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* review comments

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* merge fixes

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2023-01-19 10:06:01 -08:00
Pravin Pushkar 44d8dcb752
Precedence rule for resources directory, config file and envs (#1158)
* precedence order for resources path and config path

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* env precedence set

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* pass daprInstallPath

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* test dir structure

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* remove hard coded directory structures

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* UT refactor

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* few fixes w.r.t daprPathCmdFlag

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* switching to pre-created test data folder structure

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Move Env to SharedRunConfig struct

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* fix bug

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* lint fix

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* review comments

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* fix review comments

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* some refactoring

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* review comments

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2023-01-19 22:10:16 +05:30
Josh van Leeuwen 87b6f0ebc4
nit: Remove full stop from version string to match other subcommand help output (#1163)
* nit: Remove full stop from version string to match other subcommand help
output

Signed-off-by: joshvanl <me@joshvanl.dev>

* Update cmd/version.go

Co-authored-by: Shubham Sharma <shubhash@microsoft.com>
Signed-off-by: Josh van Leeuwen <me@joshvanl.dev>

Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: Josh van Leeuwen <me@joshvanl.dev>
Co-authored-by: Shubham Sharma <shubhash@microsoft.com>
2023-01-11 21:25:01 -08:00
Pravin Pushkar c1f9627ed6
Apps run config template parsing (#1152)
* initial commit for run template parsing

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* some code refactor.

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* add some UTs

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* call validate

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* add tests and correct err message

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* refactor Runconfig into 2 structs

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Fix Arg parsing

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* fix UTs. make app-id be inferred from app-dir if empty

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* fix tests

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* put config reltd code into separate folder

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* merge logic for common and apps section of flags.

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* adding tests and few refactoring

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* fix tests

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* file close

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* review comments

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* fix review comments

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* refactor file names

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* resolve path to abs and add more e2e for path resolving

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* address review comments

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* remove getAppskeysmapping

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* add tests, and fix issue for setitng app id when empty.

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* fix tests

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2023-01-03 17:19:59 +05:30
mikeb26 53dff409b4
Support environments with broken $HOME (#1057)
* Support environments with broken $HOME

Currently in standalone mode dapr cli will install the dapr runtime
binaries into $HOME/.dapr. However, in some environments $HOME is
readonly or os.UserHomeDir() can fail (e.g. AWS Lambda). To support
dapr in these environments this change does 2 things:

1. Allows the user to set DAPR_PATH environment variable to indicate
the location of the dapr runtime binaries.

2. Allows the user to optionally specify --dapr-path cli flag to
indicate the location of the dapr runtime binaries. When both
DAPR_PATH environment variable and --dapr-path CLI flag are present,
the cli flag has higher precedence.

When neither DAPR_PATH nor the --dapr-path CLI flag are present, we
fallback to existing behavior of defaulting to $HOME/.dapr.

Signed-off-by: Mike Brown <github@torvosoft.com>

* Address comments

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Address comments

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Address comments

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Fix unit test

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Fix e2e test

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Fix lint

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

Signed-off-by: Mike Brown <github@torvosoft.com>
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
Co-authored-by: Shubham Sharma <shubhash@microsoft.com>
2023-01-03 15:40:06 +05:30
Huei Feng 6c1bc5357c
support resources-path (#1012)
* support spec-resources-path

Signed-off-by: HueiFeng <695979933@qq.com>

* Update resource-path

Signed-off-by: hueifeng <695979933@qq.com>

* Update resource-path

Signed-off-by: hueifeng <695979933@qq.com>

* fix

Signed-off-by: hueifeng <695979933@qq.com>

* added deprecation message and e2e tests

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* added messages in readme for deprecation and use of resource-path

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* fix lint and failing test case

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

Signed-off-by: HueiFeng <695979933@qq.com>
Signed-off-by: hueifeng <695979933@qq.com>
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
Co-authored-by: Shubham Sharma <shubhash@microsoft.com>
Co-authored-by: Pravin Pushkar <ppushkar@microsoft.com>
2022-12-08 01:21:13 -08:00
Pravin Pushkar 63f14c36f9
mariner renew-certificate fix (#1139)
* mariner renew-certificate fix

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* added UT and E2E test

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* lint fix

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Update cmd/renew_certificate.go

Co-authored-by: Shubham Sharma <shubhash@microsoft.com>
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* address review commnets

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* lint fix

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* trigger pr checks

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Update utils/utils_test.go

Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Update utils/utils_test.go

Co-authored-by: Shubham Sharma <shubhash@microsoft.com>
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Update pkg/kubernetes/renew_certificate.go

Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* added inline comments

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* trigger pr checks

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* adding usage doc

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
Co-authored-by: Shubham Sharma <shubhash@microsoft.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-12-07 18:14:10 +05:30
Albert 13eed0eaf3
Support -dapr-listen-address option to daprd (#1129) 2022-11-18 20:49:31 +05:30
Alex Lai f51aefb0ba
feat: support fish shell completion (#1121)
* feat: support fish shell completion

Signed-off-by: Alex Lai <alexlai97@163.com>

* docs: reword

Signed-off-by: Alex Lai <alexlai97@163.com>

* Update cmd/completion.go

Co-authored-by: Shubham Sharma <shubhash@microsoft.com>
Signed-off-by: Alex Lai <alexlai97@outlook.com>
Signed-off-by: Alex Lai <alexlai97@163.com>

* Update cmd/completion.go

Co-authored-by: Shubham Sharma <shubhash@microsoft.com>
Signed-off-by: Alex Lai <alexlai97@outlook.com>
Signed-off-by: Alex Lai <alexlai97@163.com>

* docs: fish completion functions to completions folder

[reference](https://fishshell.com/docs/current/completions.html#where-to-put-completions)

Signed-off-by: Alex Lai <alexlai97@163.com>

Signed-off-by: Alex Lai <alexlai97@163.com>
Signed-off-by: Alex Lai <alexlai97@outlook.com>
Co-authored-by: Shubham Sharma <shubhash@microsoft.com>
Co-authored-by: Alex Lai <laixingyu@cnaeit.com>
2022-11-07 20:33:10 +05:30
Shubham Sharma 07cf0553dc
Validate and limit container runtime configuration in init and uninstall commands (#1099)
* Limit container runtime

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Lint

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Update docs for container runtime flag

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Add uninstall e2e test

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Update uninstallcmd

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Fix skip in e2e

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
2022-10-12 02:47:41 -07:00
Mukundan Sundararajan e2f7e262f1
fix dashboard scheme. fix linter issue (#1092) 2022-10-11 13:15:55 +05:30
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
LiuFeng 3bf4b5ef73
Feat/dashboard supports random port (#874) 2022-09-30 09:48:41 +05:30
Mukundan Sundararajan 65855d5aa0
Upgrade linter to 1.49.0 (#1051)
* Upgrade linter to 1.49.0

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix linter error

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-08-25 16:58:54 +05:30
Shivam Kumar 792eae132d
Adding mariner support in dapr init (#1029)
* Adding image-variant flag in self-hosted mode

Signed-off-by: shivam <shivamkm07@gmail.com>

* Adding image-variant in kubernetes init

Signed-off-by: shivam <shivamkm07@gmail.com>

* Adding image-variant in dapr upgrade

Signed-off-by: shivam <shivamkm07@gmail.com>

* e2e test for standalone mariner init

Signed-off-by: shivam <shivamkm07@gmail.com>

* Incorporating comments

Signed-off-by: shivam <shivamkm07@gmail.com>

* Reducing code duplicacy

Signed-off-by: shivam <shivamkm07@gmail.com>

* Formatting change

Signed-off-by: shivam <shivamkm07@gmail.com>

* Adding e2e tests for kubernetes init

Signed-off-by: shivam <shivamkm07@gmail.com>

* e2e test for upgrade

Signed-off-by: shivam <shivamkm07@gmail.com>

* Fixing linter error

Signed-off-by: shivam <shivamkm07@gmail.com>

* fix linter errors

Signed-off-by: shivam <shivamkm07@gmail.com>

* Uncommenting upgrade tsts

Signed-off-by: shivam <shivamkm07@gmail.com>

Signed-off-by: shivam <shivamkm07@gmail.com>
2022-08-25 11:14:11 +05:30
Pravin Pushkar 5a28708a12
feature/podman: Updating dapr cli to allow different container runtime (#1041)
* feature/podman: Updating dapr cli to allow providing of container
runtime.

- Ability to provide docker or podman runtime for init and uninstall commands
  by passing along the --container-runtime flag with values docker or
  podman.

Signed-off-by: Martin <7595909+martin-bucinskas@users.noreply.github.com>

* feature/podman: Updating install message to use the runtime environment

Signed-off-by: Martin <7595909+martin-bucinskas@users.noreply.github.com>

* feature/podman: Fixing linting issues.

- Fixing go lint issues by running gofumpt and gofmt.

Signed-off-by: Martin <7595909+martin-bucinskas@users.noreply.github.com>

* Correcting rebase

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* use podman for macos tests

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* setting env

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* adding docker host

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Change step title and remove docker host

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* code cleanup

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* install podman mac helper

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* fix review comments

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Refactor use of global varibale

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* matrix added for slim and complete  mode

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* correcting worflow expression

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* refactor uninstall code

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* separate uninstall test for slim and complete mode

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

Signed-off-by: Martin <7595909+martin-bucinskas@users.noreply.github.com>
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
Co-authored-by: Martin <7595909+martin-bucinskas@users.noreply.github.com>
2022-08-23 21:30:50 +05:30
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
qiangmzsx f8b48c2a8a
Removing the use of the ioutil package (#1037)
Signed-off-by: qiangmzsx <qiangmzsx@gmail.com>
2022-08-07 17:30:20 +05:30
yellow chicks 68f8325360
feature/helmchart: supported private helm chart repo to install dapr cluster (#895)
* feature/helmchart: supported private helm chart repo to install dapr cluster

Signed-off-by: 1046102779 <seachen@tencent.com>

* feature/helmchart: supported private helm chart repo to install dapr cluster

Signed-off-by: 1046102779 <seachen@tencent.com>

* feature/helmchart: supported private helm chart repo to install dapr cluster

Signed-off-by: 1046102779 <seachen@tencent.com>

* feature/helmchart: supported private helm chart repo to install dapr cluster

Signed-off-by: 1046102779 <seachen@tencent.com>

* feature/helmchart: supported private helm chart repo to install dapr cluster

Signed-off-by: 1046102779 <seachen@tencent.com>

* feature: add a private helm repo for dapr

Signed-off-by: 1046102779 <seachen@tencent.com>

Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Co-authored-by: Pravin Pushkar <ppushkar@microsoft.com>
2022-08-02 15:23:29 +05:30
Shubham Sharma 6d3026b0cc
Add --metadata flag to dapr publish (#1033)
* Add --metadata flag

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Add e2e test

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Revert test comments

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Update go-sdk version for e2e test

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Fix tests

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* 💄

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Run go mod tidy

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
2022-07-29 19:10:32 +05:30
Shubham Sharma abb267057c
Add new annotations to annotate command (#1020)
* Add new annotations

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Fix lint

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
2022-07-05 09:31:24 -07:00
Joni Collinge 992b493073
require -k flag to target kubernetes for annotate command (#1016)
Signed-off-by: Joni Collinge <jonathancollinge@live.com>

Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-07-04 21:57:09 -07:00
Mukundan Sundararajan f58c920c6c
Add newline char at end of dapr version output (#1014)
* add newline character at end of output of dapr version cmd

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* add newline char to dapr --version flag

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* refactor version template string

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-06-28 08:51:16 -07:00
Mukundan Sundararajan 6a24d54527
fix linter issues (#1005)
Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-06-21 21:20:26 -07:00
Pravin Pushkar 9905129bfe
Dapr init for ghcr and private reg changes in k8s mode (#984)
* Dapr init for ghcr and private reg changes in k8s mode

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* some refactoring

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Upgrade command

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Tests Modify

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Update cmd/init.go with updated preview message

Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* removing extra spaces

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-06-22 09:11:04 +05:30
Pravin Pushkar 871e449957
Refactoring renew certificate method (#988)
* refactor renew certificate method

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Updte go.mod to point to specific dapr commit hash

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-06-21 11:10:03 +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
Joni Collinge 0630996fb4
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>
2022-06-02 08:00:16 -07:00
FanBin 3d01ffd8d3
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>
2022-06-01 09:11:42 -07:00
Shubham Sharma 389101ba6e Fix godot
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
2022-04-11 18:14:22 +05:30
Mukundan Sundararajan 5879d915bd
Change `--from-dir` init flow (#945)
* fix --from-dir flag init

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix env var not set for k8s tests also

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix k8s test

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* address review comments

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix typo

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* addressed comments

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* Update tests/e2e/common/common.go

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

Co-authored-by: Shubham Sharma <shubhash@microsoft.com>

* fix typo

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

Co-authored-by: Shubham Sharma <shubhash@microsoft.com>
2022-04-04 16:35:51 -07:00
Pravin Pushkar 1331e29eca
Do not allow mixing of flags in renew cert (#947)
* Do not allow mixing of flags in renew cert

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Review comments fixes

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* check cert loaded in mtls expiry

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
2022-04-01 21:38:53 +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
Pravin Pushkar a134860308
pull docker images from ghcr and fallback to docker if necessary (#926)
* pulling images from ghcr by default

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* fixing self_hosted e2e tests

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* default all tests with ghcr and removing tests for --image-registry

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* adding tests for dockerhub install and custom registry

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* fixing review comments

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Fixing review comments

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Review comments fix

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Some refactoring

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* fix for review comments

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
2022-03-24 11:04:13 +05:30
Pravin Pushkar 4818533729
Changes for cli command to renew certificate (#912)
* Changes for cli command to renew certificate

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* adding renew-cert as subcommand to mtls

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Impl for generating fresh certificates with provided  ttl

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* fix lint and ttl

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Adding a flag to restart services

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Adding tests and some refactoring

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Adding timeout and changing flags detail

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* fixing review comments

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Fixing review comments and test failures

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Fixing tests and readme

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* fixing uninstall and other certificate test

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* review comments fixes

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
2022-03-23 10:33:48 +05:30
Mukundan Sundararajan ce0af7c01c
Fix examples and print preview feature warnings (#927)
* Fix examples and print preview feature warnings

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* small changes to wordings

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>
2022-03-22 12:11:56 -07:00
meijin 9fa0cdf229
dapr cli list components configuration add namespace flag (#787)
* dapr cli list components configuration add namespace flag

Signed-off-by: meijin <meijin@tiduyun.com>

* fix unit test err

Signed-off-by: meijin <meijin@tiduyun.com>

* add usage example

Signed-off-by: meijin <meijin@tiduyun.com>

* change some annotation

Signed-off-by: meijin <meijin@tiduyun.com>

* fix typo and adjust help guide

Signed-off-by: meijin <meijin@tiduyun.com>

* default all ns and -name shorthand to -N

Signed-off-by: meijin <meijin@tiduyun.com>

* adjust e2e test for output warning msg

Signed-off-by: meijin <meijin@tiduyun.com>

* adjust e2e test for output warning msg

Signed-off-by: meijin <meijin@tiduyun.com>

* adjust e2e test for output warning msg

Signed-off-by: meijin <meijin@tiduyun.com>

* add get all ns components e2e tests

Signed-off-by: meijin <meijin@tiduyun.com>

* add e2e test log

Signed-off-by: meijin <meijin@tiduyun.com>

* add test ns for e2e test

Signed-off-by: meijin <meijin@tiduyun.com>

* in k8s mode -n flag for --name short

Signed-off-by: meijin <meijin@tiduyun.com>

Co-authored-by: Mukundan Sundararajan <msundar.ms@outlook.com>
2022-03-22 09:14:59 +05:30