Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 99e2ba7

Browse files
author
Matthieu Nottale
committed
helm: Fix appname detection.
Signed-off-by: Matthieu Nottale <[email protected]>
1 parent f41797c commit 99e2ba7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

renderer/helm.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ func toHelmMeta(meta *types.AppMetadata) (*helmMeta, error) {
3737

3838
// Helm renders an app as an Helm Chart
3939
func Helm(appname string, composeFiles []string, settingsFile []string, env map[string]string) error {
40-
oAppname := appname
4140
appname, cleanup, err := packager.Extract(appname)
4241
if err != nil {
4342
return err
@@ -57,7 +56,7 @@ func Helm(appname string, composeFiles []string, settingsFile []string, env map[
5756
if err != nil {
5857
return err
5958
}
60-
targetDir := utils.AppNameFromDir(oAppname) + ".chart"
59+
targetDir := utils.AppNameFromDir(appname) + ".chart"
6160
os.Mkdir(targetDir, 0755)
6261
hmeta, err := toHelmMeta(&meta)
6362
if err != nil {

0 commit comments

Comments
 (0)