From 69f94f64f0978973c5f9d9078019dd54b6520352 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 13 Nov 2024 01:17:27 -0500 Subject: [PATCH] fix: correct issue with locating existing chart --- plugins/scheduler-k3s/helm.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/scheduler-k3s/helm.go b/plugins/scheduler-k3s/helm.go index 098bf3ad1..719346d45 100644 --- a/plugins/scheduler-k3s/helm.go +++ b/plugins/scheduler-k3s/helm.go @@ -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) }