Skip to content

Commit 2c4dcfe

Browse files
committed
helmchart: use dir of artifact path on package run
1 parent b7603f9 commit 2c4dcfe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

controllers/helmchart_controller.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323
"net/url"
2424
"os"
2525
"path"
26+
"path/filepath"
2627
"strings"
2728
"time"
2829

@@ -383,7 +384,7 @@ func (r *HelmChartReconciler) reconcileFromGitRepository(ctx context.Context,
383384

384385
// package chart
385386
pkg := action.NewPackage()
386-
pkg.Destination = artifact.Path
387+
pkg.Destination = filepath.Dir(artifact.Path)
387388
_, err = pkg.Run(chartPath, nil)
388389
if err != nil {
389390
err = fmt.Errorf("chart package error: %w", err)

0 commit comments

Comments
 (0)