Skip to content

Output order is non-deterministic #6

@sjthespian

Description

@sjthespian

I was hoping to use helm template for doing some evaluation of our developer's charts before we try and deploy them. However, it appears that the output order of the template files is non-deterministic. I haven't seen this happen with helm install --dry-run --debug.

In a test, where I run the following:

git clone xxx
helm template xxx > helmchart-head.yaml
git checkout previous_commit
helm template xxx > helmchart-prev.yaml

helmchart-prev.yaml contains secrets then services while helmchart-head.yaml contains services then secrets. This makes it impossible to interpret the output of diff -ub helmchart-prev.yaml helmchart-head.yaml.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions