Commit Graph

55 Commits

Author SHA1 Message Date
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
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
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 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
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
beiwei.ly f465610b19 fix default value for from-dir
Signed-off-by: beiwei.ly <beiwei.ly@alibaba-inc.com>
2022-02-24 16:07:29 +08:00
beiwei.ly f75999c008 introduce --from-dir to support init from local disk
Signed-off-by: beiwei.ly <beiwei.ly@alibaba-inc.com>
2022-02-24 15:54:58 +08:00
Ian Luo efb8683da6 dapr airgap mode
Signed-off-by: Ian Luo <ian.luo@gmail.com>
2022-02-18 16:42:54 +08:00
Pravin Pushkar f89be62068
Adding support for image-repository url with dapr init (#888)
* Adding support for image-repository url with dapr init

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

* Adding e2e tests and updaing README.md

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

* Fixing lint errors

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

* Changing description for the flag in --help

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
2022-02-09 14:03:10 +05:30
amulyavarote 68c2ab84d4
Added code to pull dashboard version automatically for E2E tests (#847)
* Pulling dashboard version automatically for E2E tests

Signed-off-by: Amulya Varote <amulyavarote@Amulyas-MacBook-Pro.local>
Signed-off-by: Amulya Varote <amulyavarote@MININT-8V4CL0S.redmond.corp.microsoft.com>

* Added script to read the latest version

Signed-off-by: Amulya Varote <amulyavarote@Amulyas-MacBook-Pro.local>
Signed-off-by: Amulya Varote <amulyavarote@MININT-8V4CL0S.redmond.corp.microsoft.com>

Added code to get the latest versions for the PR

Signed-off-by: Amulya Varote <amulyavarote@MININT-8V4CL0S.redmond.corp.microsoft.com>

Removed dapr cli changes

Signed-off-by: Amulya Varote <amulyavarote@MININT-8V4CL0S.redmond.corp.microsoft.com>

Added comment to the default versions

Signed-off-by: Amulya Varote <amulyavarote@MININT-8V4CL0S.redmond.corp.microsoft.com>

Changed the script for dashboard version

Signed-off-by: Amulya Varote <amulyavarote@Amulyas-MacBook-Pro.local>

Removed invalid syntax

Added testing

Added testing

Added testing

Added testing

* Changed if condition to get the expression evaluated correctly

Pulling dashboard version automatically for E2E tests

Signed-off-by: Amulya Varote <amulyavarote@Amulyas-MacBook-Pro.local>
Signed-off-by: Amulya Varote <amulyavarote@MININT-8V4CL0S.redmond.corp.microsoft.com>

Changed if condition to get the expression evaluated correctly

Co-authored-by: Amulya Varote <amulyavarote@Amulyas-MacBook-Pro.local>
Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2022-01-04 10:02:30 -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
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
Bernd Verst 7affabbbc2
Allow specifying of runtime-version via Env Var for `dapr init` (#806)
* Allow specifying of runtime-version via Env Var

* Change order of preference for runtimeVersion command
2021-10-07 16:48:10 -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
Phil Kedy e966e40694
Add --wait amd --timeout flags for dapr init -k which are passed to Helm (#629)
* Added --wait flag for dapr init -k which is passed on to Helm

* Simplification

* Added --timeout flag to kubernetes init, upgrade, and uninstall

* Tweaks

* Tweak

* Fixing conflict after merge from master

Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>
2021-03-17 11:15:18 -07:00
Yaron Schneider f045249e71
fix preserveUnknownFields upgrade (#602) 2021-02-15 11:34:03 -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
Yaron Schneider 60a0e04538
Fix wrong URL 2021-01-12 08:49:11 -08:00
Yaron Schneider 53cfd114ef
Add support for all helm values on init/upgrade (#575)
* add support for all helm options on init/upgrade

* update readme
2021-01-06 16:07:04 -08:00
Mukundan Sundararajan 6c00c081ff remove extra line 2020-12-11 16:23:55 -08:00
Mukundan Sundararajan d99ce1af5f update init example 2020-12-11 16:23:27 -08:00
Mukundan Sundararajan d09b09c0dd
Remove redis-host flag, fix configs and uninstall with network flag. (#546) 2020-12-10 21:33:03 -08:00
Mukundan Sundararajan 51bbd0a171
updated help messages. provide example for commands. (#544) 2020-12-08 12:04:11 -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
Aaron Crawfis 4591a9d37b Update docs links 2020-10-23 11:18:30 -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
Yaron Schneider 2dfe958269
Refactor init on kubernetes to use Helm (#432)
* refactor init on kubernetes to use Helm

* linter

* linter 2

* update README

* change repo url
2020-08-13 12:59:47 -07:00
Yaron Schneider 06d64bf7ac
make version flags consistent for init/uninstall (#425) 2020-07-30 08:41:35 -07:00
Aman Bhardwaj 2a4123efaf
Change init and uninstall behavior for self hosted mode (#413)
* remove install-path option for dapr init copy bianries under $HOME/.dapr/bin
2020-07-22 14:47:57 -07:00
Mukundan Sundararajan ff2d5dd482
Initialize dapr without docker dependency (#386)
* Initialize dapr without docker dependency

* Create default empty components dir

* Remove --slim flag from uninstall command

* Changed phrasing

* Updated Readme

* Clarify slim init use case

* language corrections

Co-authored-by: Mark Chmarny <mchmarny@users.noreply.github.com>
Co-authored-by: Ori Zohar <orzohar@microsoft.com>
2020-07-10 16:32:45 -07:00
Mukundan Sundararajan 0b76467280
Fix Standalone dapr init behavior. (#384)
* Remove uninstall all from init path. Add install path arg to uninstall cmd. Cleanup binaries, archive correctly.

* Addressed review comments

* Change readme

* update readme
2020-06-29 15:27:59 -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
Shalabh Mohan Shrivastava 86e6d6d65d
Adding support for --runtime-version flag for dapr init k8s (#316)
* Adding support for --runtime-version flag for dapr init k8s

* fixing lint error and changing the command text version

Co-authored-by: Aman Bhardwaj <amanbha@users.noreply.github.com>
2020-04-09 17:01:04 -07:00
Shalabh Mohan Shrivastava 43a4a9809e
Updating dapr init -k installation message (#317)
* Updating dapr init -k installation message

* Resolving code review comments.
2020-04-08 17:04:54 -07:00
Carlos Landeras b482ac133c
Add Kubernetes shorthand k to init, list and logs cli commands (#282)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-02-25 14:57:53 -08:00
Yaron Schneider 53e86a1b3a
add gcp auth (#266)
* add gcp auth

* linter

* add all auth

* fix auth

* add get started message

* shorten url
2020-02-13 21:17:08 -08:00
Leon Mai 24557c2465
Allow alternate install path (#213)
* alternate install

* Add comment
2019-11-27 15:15:09 -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
Yaron Schneider 16bab6b759
remove redis on local init (#206) (#207) 2019-11-14 21:15:03 -08:00
Yaron Schneider 228e5bea5e
remove Dapr placement image on uninstall and init (#204) 2019-11-12 14:29:52 -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
Yaron Schneider 4d6cd4e721
removed v prefix (#157) 2019-10-15 19:12:02 -07:00
Yaron Schneider f419af420d
add testing warning for kubernetes init (#155) 2019-10-15 17:33:08 -07:00
Aman Bhardwaj 6debcf2610 Adding license header and updating to MIT license. 2019-10-08 16:36:31 -07:00
Yaron Schneider ff8224b3a5
Update init.go (#123) 2019-10-08 11:41:17 -07:00
Yaron Schneider f762eedf6e
Update init.go (#113) 2019-10-03 15:52:11 -07:00
Yaron Schneider 36973dca2f
name change (#109) 2019-10-02 16:40:04 -07:00