Skip to content

helmfile 1.2.1 fails with multiple release files using local chart and transformers #2297

Description

@vgivanov

Operating system

Debian 12, Ubuntu 24.04

Helmfile Version

1.2.1

Helm Version

version.BuildInfo{Version:"v3.19.2", GitCommit:"8766e718a0119851f10ddbe4577593a45fadf544", GitTreeState:"clean", GoVersion:"go1.24.9"}

Bug description

After upgrading from 1.1.9 to 1.2.1 helmfile started crashing in one of my deployments.

I've managed to narrow it down to following conditions:

  • several releases in different files inside helmfile.d
  • one of the releases must use charts from local directory
  • this release also must have transformers applied to them

The same release renders OK if I remove transformers from release file.

Example helmfile.yaml

See provided reproduction repo for minial config and steps to reproduce

Error message you've seen (if any)

panic: BUG: please file an github issue for this unhandled error: *errors.errorString: [exit status 1

        COMMAND:
          helm pull ../chart --untar -d /tmp/chartify3348756149/with-transformers

        OUTPUT:
          Error: repo .. not found]

goroutine 12 [running]:
github.com/helmfile/helmfile/cmd.toCLIError(0xc000746240?, {0x5afe620?, 0xc00091c650?})
        /home/runner/work/helmfile/helmfile/cmd/root.go:38 +0x268
github.com/helmfile/helmfile/cmd.NewTemplateCmd.func1(0xc000f06a00?, {0x51f5319?, 0x4?, 0x51f540d?})
        /home/runner/work/helmfile/helmfile/cmd/template.go:29 +0x117
github.com/spf13/cobra.(*Command).execute(0xc00108ac08, {0xc0004fa1a0, 0x2, 0x2})
        /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1015 +0xb02
github.com/spf13/cobra.(*Command).ExecuteC(0xc000cd3b08)
        /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1148 +0x465
github.com/spf13/cobra.(*Command).Execute(0xc0001c9a40?)
        /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1071 +0x13
main.main.func1()
        /home/runner/work/helmfile/helmfile/main.go:29 +0x69
created by main.main in goroutine 1
        /home/runner/work/helmfile/helmfile/main.go:21 +0xcf

Steps to reproduce

https://github.com/vgivanov/helmfile-1.2-regression-reproduction

Working Helmfile Version

1.1.9

Relevant discussion

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions