helmfile: helmfile -f ... apply throws error
When running helmfile apply I get the following after the diff:
Error: identified at least one change, exiting with non-zero exit code (detailed-exitcode parameter enabled)
identified at least one change, exiting with non-zero exit code (detailed-exitcode parameter enabled)
Error: plugin "diff" exited with error
err: exit status 1
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 6
- Comments: 23 (3 by maintainers)
workaround:
no idea why
The flag
--detailed-exitcodeshouldn’t be passed to helm diff plugin when the chart is not installed yet.On the diff plugin command we have
--detailed-exitcode return a non-zero exit code when there are changesThat means the helm diff command will always fail during an installation because there are changes involved.
You will be able to reproduce the error running these commands in a fresh cluster (no helm chart installed).
helmfile.yaml
helmfile diff command success
helmfile diff command error
@RiceBowlJr Thanks, with the latest
v0.78.0I cannot repoduce this issue anymore.@Constantin07 try with the flag
--log-level debug, it is very verbose but might help you find the error.@yurrriq Glad to hear it finally worked for you ☺️ Thanks for reporting!
I also have this problem, but it is not as easy as upgrading helm, as we have live clusters with a 2.9.x tiller.
This is compounded by the fact that helm diff plugin embeds helm, which is shabby: consider:
Then helm 2.9.x drives a plugin which embeds helm at a different version 2.10, which wants to diff a cluster with another 2.9.
The only compatible guarantee is to have all the same versions. Anyway, as I write this, it is the tight client-server version coupling of helm-tiller which is at cause. But having separate installations brings confusion.