From 04436188ffc4cc836efdfd38d742213206b5bb7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A5=9A=E5=B2=B3?= Date: Mon, 13 Feb 2023 14:10:09 +0800 Subject: [PATCH] add multiple valeus yaml in MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 楚岳 --- pkg/utils/helm/helm_helper.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/utils/helm/helm_helper.go b/pkg/utils/helm/helm_helper.go index 6346b1e65..614ec6262 100644 --- a/pkg/utils/helm/helm_helper.go +++ b/pkg/utils/helm/helm_helper.go @@ -404,9 +404,9 @@ func fetchChartValuesFromOciRepo(repoURL string, chartName string, version strin func loadValuesYamlFile(chart *chart.Chart) map[string]string { result := map[string]string{} - re := regexp.MustCompile(`.*values.yaml$`) + re := regexp.MustCompile(`.*yaml$`) for _, f := range chart.Raw { - if re.MatchString(f.Name) { + if re.MatchString(f.Name) && !strings.Contains(f.Name, "/") && f.Name != "Chart.yaml" { result[f.Name] = string(f.Data) } }