From 84dace707fdcb247a30891afb57fef6071ba0688 Mon Sep 17 00:00:00 2001 From: Atanas Dinov Date: Fri, 7 Jun 2024 15:46:54 +0300 Subject: [PATCH] Fix Helm values path value Signed-off-by: Atanas Dinov --- pkg/registry/helm.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/registry/helm.go b/pkg/registry/helm.go index 22aa8330..806d988e 100644 --- a/pkg/registry/helm.go +++ b/pkg/registry/helm.go @@ -40,7 +40,11 @@ func (r *Registry) helmChartImages() ([]string, error) { var containerImages []string for _, chart := range r.helmCharts { - valuesPath := filepath.Join(r.helmValuesDir, chart.ValuesFile) + var valuesPath string + if chart.ValuesFile != "" { + valuesPath = filepath.Join(r.helmValuesDir, chart.ValuesFile) + } + images, err := r.getChartContainerImages(&chart.HelmChart, chart.localPath, valuesPath, r.kubeVersion) if err != nil { return nil, err