Skip to content

array merging in helmfile v1.3.0 does not support nested helmfiles #2451

Description

@nils-ersoy

Operating system

Ubuntu 22.04.5 LTS

Helmfile Version

v1.3.0, v1.3.1, v1.3.2, v1.4.0

Helm Version

v3.20.0

Bug description

This issue is related to #2353 and the fix in #2367.

As I understand the solution to the problem, I'm now supposed to use environments to override my values.

That all works as far as I can tell.

However, we also use nested Helmfiles, as in #2353 , and I haven't found anything in the documentation about how to use environments within nested Helmfiles.

In v1.2.0 before merge array was introduced my helmfile looked liked that

helmfiles:
  - path: ../../helmfile.yaml.gotmpl
    values:
      - list:
          - name: a

But since I need to set environment to achieve the same I would need to define the environment block in the nested helmfile but thats not possible so how can I overwrite the values in the root-helmfile?

Example helmfile.yaml

As seen in the provided examples (01 & 02), the second one behaves as expected using environments. But for that I need to edit the helmfile.yaml.gotmpl in the root and then using a kind of workaround with the "overwrite" value The first one uses values and a merge happens.

The expected result and the actual results are described in the helmfile.yaml of the corresponding example.
https://github.com/nils-ersoy/helmfile-list-merg-issue/tree/main

Error message you've seen (if any)

No error message

Steps to reproduce

See "Example helmfile.yaml"

Working Helmfile Version

v1.2.0

Relevant discussion

#2367

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