Commit Graph

28 Commits

Author SHA1 Message Date
Mukundan Sundararajan f5eb4fda6c
fix upload artifact name conflict (#1373)
* fix upload test report name

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 upload artifacts version and name conflicts

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

* fix typo

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

* fix typo

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

---------

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2024-01-18 02:07:09 -08:00
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
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
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
Mukundan Sundararajan e2f7e262f1
fix dashboard scheme. fix linter issue (#1092) 2022-10-11 13:15:55 +05:30
LiuFeng 3bf4b5ef73
Feat/dashboard supports random port (#874) 2022-09-30 09:48:41 +05:30
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
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
Pravin Pushkar 34353a27e2
Include certificate expiry check in all kubernetes commands (#899)
* Include certificate expiry check in all kubernetes commands

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

* Using PostRun from Cobra and fixing review comments

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

* Modifying logging for error on certificate check

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

* Fixing review comments

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

* Fixing string messages

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
2022-02-25 13:43:08 +05:30
Dmitry Shmulevich 0f9d0d3a89
replaced license headers (#855)
Signed-off-by: Dmitry Shmulevich <dmitry.shmulevich@gmail.com>
2021-12-10 08:09:09 +05:30
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 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
meijin ff70945893 add --address usage example 2021-08-17 22:18:14 +08:00
meijin 5ed20845dd dapr dashboard add address option 2021-08-17 18:52:00 +08:00
Yaron Schneider 3ee9e53338
add renewed headers (#588) 2021-02-10 08:37:08 -08:00
Betula-L 49afc98aa6
support assign specified dashboard version for init (#535)
Signed-off-by: luhualin <n.betula.lu@gmail.com>

Co-authored-by: root <root@nvm-ops-image-lnx-1>
2021-01-25 10:14:26 -08:00
Mukundan Sundararajan 51bbd0a171
updated help messages. provide example for commands. (#544) 2020-12-08 12:04:11 -08:00
Mukundan Sundararajan 2495648629
Make flags consistent across commands. (#541)
update help messages
2020-12-03 14:32:39 -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
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 b00983e9b6
Propagates dashboard port in standalone mode. (#465) 2020-09-21 14:18:03 -07:00
Will Smith ac1d1b7a94
Adding dashboard version command (#433)
* fix dapr latest version check for dapr init -k

* adding dashboard --version command

* printing result of version call

* updated reference doc for dashboard version command

* cleaning up commit
2020-08-13 15:32:40 -07:00
Will Smith 5c3eb03030
Adding self-hosted integration to Dashboard command (#427)
* added function to install dashboard binaries

* added to waitgroup

* updated installBinary method to support non-dapr repositories

* adding dashboard binaries

* binary install working for daprd and dashboard on linux

* added dashboard command for standalone

* updated dashboard documentation

* changed linux home directory to be outside of root

* fixing version issue

* moved location of extracted web folder

* fixing path issues on linux

* changed dashboard to take latest version

* updated documentation for dashboard standalone

* fixed issue where binary name was unknown in non-default path dapr install

* added user error message for dashboard not found error

* fixing linting issues

* adding dashboard compatibility changes

* mark dashboard flag as required

* syncing compatibility branch and master

* fixing uninstall error

* removing unnecessary check

* removing unused constants

* changed standalone untar method openfile mode

* added missing error message

* removed windows binary check in untar method

* updating unzip method to support multiple files in archive

* adding sanitizeExtractPath method and limiting archive copy bytes

* changed max file size to 100MB

* removing max file size limit

* removing debug statement

* Adding dashboard command to allow for standalone dashboard launch

* removed -rc tag downloads for dashboard

* removing extra alias

* adding function moveDashboardFiles to simplify installBinary function

* moving dashboard command logic to standalone/dashboard.go

* removing error channel from moveDashboardFiles

* removing error channel from moveDashboardFiles

Co-authored-by: Shalabh Mohan Shrivastava <shalabhs@microsoft.com>
2020-08-06 14:11:55 -07:00
Will Smith 12b0651c94
Setup for addition of dashboard self-hosted command (#417)
* added function to install dashboard binaries

* added to waitgroup

* updated installBinary method to support non-dapr repositories

* adding dashboard binaries

* binary install working for daprd and dashboard on linux

* added dashboard command for standalone

* updated dashboard documentation

* changed linux home directory to be outside of root

* fixing version issue

* moved location of extracted web folder

* fixing path issues on linux

* changed dashboard to take latest version

* updated documentation for dashboard standalone

* fixed issue where binary name was unknown in non-default path dapr install

* added user error message for dashboard not found error

* fixing linting issues

* adding dashboard compatibility changes

* mark dashboard flag as required

* syncing compatibility branch and master

* fixing uninstall error

* removing unnecessary check

* removing unused constants

* changed standalone untar method openfile mode

* added missing error message

* removed windows binary check in untar method

* updating unzip method to support multiple files in archive

* adding sanitizeExtractPath method and limiting archive copy bytes

* changed max file size to 100MB

* removing max file size limit

* removing debug statement

* removing tabs in cmd/dashboard.go

* fixing whitespace issues

Co-authored-by: Shalabh Mohan Shrivastava <shalabhs@microsoft.com>
2020-08-04 11:48:45 -07:00
Will Smith 8b58e2cba3
Dashboard integration: Updating user requirements and port-forwarding correct namespace (#390)
* removed prerequisite for dapr dashboard command

* updated dashboard command to accept namespace

* removed -n flag to set namespace

* fixing linting issues

* dapr dashboard command now supports -n namespace argument

* fixing format issue

* printing error on failed k8s config load

* added defaultNamespace constant, fixed duplication bug

* changed to tell user which namespace dashboard is found in

* removed extra comment
2020-07-09 17:41:38 -07:00
Gurpreet Singh 0da3c555d5
Added documentation for dapr dashboard (#387)
* Added docs for dapr dashboard

* updated cli docs
2020-07-01 22:18:02 -07:00
Gurpreet Singh 0a1a0bdf2e
Added new CLI command dapr dashboard (#383)
* Added files for new command, added cobra command line code for dapr dashboard

* Janky first implementation

* WIP: added default host, port for dashboard

* implemented port-forwarding for dashboard

* fixed lint errors

* removed dashboard deployment, fixed PR comments
2020-06-29 10:16:14 -07:00