From 2c4dcfe72d1ff291d6a09f95d2f1b55170a823a9 Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Tue, 1 Sep 2020 16:08:20 +0200 Subject: [PATCH] helmchart: use dir of artifact path on package run --- controllers/helmchart_controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/helmchart_controller.go b/controllers/helmchart_controller.go index 844cf63c..0eaca70b 100644 --- a/controllers/helmchart_controller.go +++ b/controllers/helmchart_controller.go @@ -23,6 +23,7 @@ import ( "net/url" "os" "path" + "path/filepath" "strings" "time" @@ -383,7 +384,7 @@ func (r *HelmChartReconciler) reconcileFromGitRepository(ctx context.Context, // package chart pkg := action.NewPackage() - pkg.Destination = artifact.Path + pkg.Destination = filepath.Dir(artifact.Path) _, err = pkg.Run(chartPath, nil) if err != nil { err = fmt.Errorf("chart package error: %w", err)