dapr / cli

Command-line tools for Dapr.
Apache License 2.0
321 stars 204 forks source link

Add a --install flag to dapr upgrade #598

Open DarqueWarrior opened 3 years ago

DarqueWarrior commented 3 years ago

Describe the proposal

When using infrastructure as code in a DevOps pipeline there are times my K8s cluster will be created and others where it will already exist. In either case, I want to be able to install dapr without error.

As of today with two separate commands init and upgrade my pipeline would have to have logic in it to determine if I just created my cluster or not. This goes against the declarative nature of infrastructure as code.

Other solutions like helm have an --install flag for their upgrade command. In a pipeline you only use helm upgrade --install. That way if the app is missing it is installed. If it is already there it is upgraded. Either way at the end of my pipeline I have the desired result with no if/else logic in my pipeline.

I would see using this in combination with the proposed --wait flag.

dapr upgrade -k --runtime-version 1.0.0 --install --wait

Release Note

RELEASE NOTE:

tanvigour commented 3 years ago

/assign

mukundansundar commented 3 years ago

@tanvigour Is there any progress on this?

dapr-bot commented 2 years ago

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

mukundansundar commented 2 years ago

@tanvigour is there any progress in this?

dapr-bot commented 2 years ago

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

mukundansundar commented 2 years ago

@tanvigour Are you working on this?