fix: correct issue with locating existing chart

This commit is contained in:
Jose Diaz-Gonzalez committed 2024-11-13 01:17:27 -05:00
1 parent 025c8f6ad1
commit 69f94f64f0
1 file changed
+2 -1
+2 -1
View File
@@ -334,7 +334,8 @@ func (h *HelmAgent) UpgradeChart(ctx context.Context, input ChartInput) error {
client.RepoURL = input.RepoURL client.RepoURL = input.RepoURL
} }
chart, err := client.ChartPathOptions.LocateChart(input.ChartPath, nil) settings := cli.New()
chart, err := client.ChartPathOptions.LocateChart(input.ChartPath, settings)
if err != nil { if err != nil {
return fmt.Errorf("Error locating chart: %w", err) return fmt.Errorf("Error locating chart: %w", err)
} }