helmchart: use dir of artifact path on package run

This commit is contained in:
Hidde Beydals 2020-09-01 16:08:20 +02:00
parent b7603f9fd3
commit 2c4dcfe72d
1 changed files with 2 additions and 1 deletions

View File

@ -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)