technosophos/helm-template

Output order is non-deterministic

sjthespian opened this issue · 1 comments

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.

Would sorting alphabetically on template path be okay?