dapr / dapr/cli

Add a --install flag to dapr upgrade

Open
#598 6 comments 0 reactions 1 assignee Claimed by @tanvigour View on GitHub
kind/feature P2 triaged/resolved
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.