Add a --install flag to dapr upgrade
- Dominant language
- Go
- Stars
- 353
- Forks
- 221
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 2
Description
## 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:
Contributor guide
Assessment
This issue has not been assessed yet.