mirror of https://github.com/dapr/cli.git
About dapr upgrade (#1118)
This commit is contained in:
parent
49a40657d8
commit
8a0936af9f
|
|
@ -15,6 +15,7 @@ package kubernetes
|
|||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/dapr/cli/utils"
|
||||
|
|
@ -51,6 +52,9 @@ func GetDaprHelmChartName(helmConf *helm.Configuration) (string, error) {
|
|||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
if len(releases) == 0 {
|
||||
return "", fmt.Errorf("could not find release name %q in your helm releases", daprReleaseName)
|
||||
}
|
||||
var chart string
|
||||
for _, r := range releases {
|
||||
if r.Chart != nil && strings.Contains(r.Chart.Name(), "dapr") {
|
||||
|
|
|
|||
Loading…
Reference in New Issue