fix: correct issue with locating existing chart

This commit is contained in:
Jose Diaz-Gonzalez
2024-11-13 01:17:27 -05:00
parent 025c8f6ad1
commit 69f94f64f0

View File

@@ -334,7 +334,8 @@ func (h *HelmAgent) UpgradeChart(ctx context.Context, input ChartInput) error {
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 {
return fmt.Errorf("Error locating chart: %w", err)
}