You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by zh...@apache.org on 2024/12/15 23:43:01 UTC

(dubbo-kubernetes) branch master updated: [operator] fix helm api package path is empty

This is an automated email from the ASF dual-hosted git repository.

zhongxjian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-kubernetes.git


The following commit(s) were added to refs/heads/master by this push:
     new fcd5a224 [operator] fix helm api package path is empty
fcd5a224 is described below

commit fcd5a224f0c674db3434d305bb454a8a1a4fe48b
Author: mfordjody <11...@qq.com>
AuthorDate: Mon Dec 16 07:42:51 2024 +0800

    [operator] fix helm api package path is empty
---
 operator/pkg/helm/helm.go | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/operator/pkg/helm/helm.go b/operator/pkg/helm/helm.go
index 51226082..e16a77df 100644
--- a/operator/pkg/helm/helm.go
+++ b/operator/pkg/helm/helm.go
@@ -2,6 +2,7 @@ package helm
 
 import (
 	"fmt"
+	"github.com/apache/dubbo-kubernetes/manifests"
 	"github.com/apache/dubbo-kubernetes/operator/pkg/manifest"
 	"github.com/apache/dubbo-kubernetes/operator/pkg/parts"
 	"github.com/apache/dubbo-kubernetes/operator/pkg/util"
@@ -101,7 +102,9 @@ func Reader(namespace string, directory string, dop values.Map) ([]manifest.Mani
 		return nil, nil, fmt.Errorf("failed to get values from dop: %v", ok)
 	}
 	path := pathJoin("charts", directory)
-	chrt, err := loadChart(nil, path)
+	pkgPath := dop.GetPathString("spec.packagePath")
+	f := manifests.BuiltinDir(pkgPath)
+	chrt, err := loadChart(f, path)
 	output, warnings, err := readerChart(namespace, vals, chrt)
 	if err != nil {
 		return nil, nil, fmt.Errorf("render chart: %v", err)