About dapr upgrade (#1118)

This commit is contained in:
Yao Yao 2022-12-06 12:25:42 +08:00 committed by GitHub
parent 49a40657d8
commit 8a0936af9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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") {