cli icon indicating copy to clipboard operation
cli copied to clipboard

Add a --install flag to dapr upgrade

Open DarqueWarrior opened this issue 4 years ago • 6 comments

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:

DarqueWarrior avatar Feb 12 '21 17:02 DarqueWarrior

/assign

tanvigour avatar Jul 29 '21 14:07 tanvigour

@tanvigour Is there any progress on this?

mukundansundar avatar Nov 19 '21 04:11 mukundansundar

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.

dapr-bot avatar Jan 04 '22 01:01 dapr-bot

@tanvigour is there any progress in this?

mukundansundar avatar Jan 04 '22 03:01 mukundansundar

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.

dapr-bot avatar Feb 03 '22 03:02 dapr-bot

@tanvigour Are you working on this?

mukundansundar avatar Feb 18 '22 02:02 mukundansundar