This is a Helm plugin showing a preview of what a helm upgrade
would change. (See helm diff)
If there are changes detected you are prompted to proceed with the helm upgrade
command with the same parameters.
helm plugin install https://github.com/code-chris/helm-diff-upgrade
Usage:
diff-upgrade [args]
All args
are redirected to the helm diff
and helm upgrade
commands, so you cannot use flags right now, which are only supported by one of these.
To force a upgrade when there are changes without prompt (e.g. in CI environment) set the environment variable HELM_FORCE_DIFF_UPGRADE
to 1
.
Example:
helm diff-upgrade -n monitoring grafana bitnami/grafana -f grafana.yaml
Would result in:
helm diff upgrade -C 3 --detailed-exitcode -n monitoring grafana bitnami/grafana -f grafana.yaml
helm upgrade -i -n monitoring grafana bitnami/grafana -f grafana.yaml
Note: The -C 3
and --detailed-exitcode
are hardcoded. The helm diff
plugin is no prerequisite, its binary is downloaded internally.
This plugin supports Linux and MacOS environments.
Please refer to the Contribution guildelines.
Please refer to the Conduct guildelines.
Please refer to the Security process.