Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output order is non-deterministic #6

Open
sjthespian opened this issue Mar 24, 2017 · 1 comment
Open

Output order is non-deterministic #6

sjthespian opened this issue Mar 24, 2017 · 1 comment

Comments

@sjthespian
Copy link

sjthespian commented Mar 24, 2017

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.

@technosophos
Copy link
Owner

Would sorting alphabetically on template path be okay?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants