https://github.com/ckotzbauer/helm-diff-upgrade
Upgrade helm releases with a preview diff
https://github.com/ckotzbauer/helm-diff-upgrade
charts helm helm-plugin kubernetes
Last synced: 8 months ago
JSON representation
Upgrade helm releases with a preview diff
- Host: GitHub
- URL: https://github.com/ckotzbauer/helm-diff-upgrade
- Owner: ckotzbauer
- License: mit
- Created: 2020-03-28T14:35:36.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-28T14:49:28.000Z (almost 4 years ago)
- Last Synced: 2025-06-17T08:43:33.064Z (9 months ago)
- Topics: charts, helm, helm-plugin, kubernetes
- Language: Shell
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Helm Diff Upgrade Plugin
This is a Helm plugin showing a preview of what a `helm upgrade` would change. (See [helm diff](https://github.com/databus23/helm-diff))
If there are changes detected you are prompted to proceed with the `helm upgrade` command with the same parameters.
## Installation
```shell
helm plugin install https://github.com/code-chris/helm-diff-upgrade
```
## Usage
```
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
```
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.
### OS Support
This plugin supports Linux and MacOS environments.
## Contributing
Please refer to the [Contribution guildelines](https://github.com/ckotzbauer/.github/blob/main/CONTRIBUTING.md).
## Code of conduct
Please refer to the [Conduct guildelines](https://github.com/ckotzbauer/.github/blob/main/CODE_OF_CONDUCT.md).
## Security
Please refer to the [Security process](https://github.com/ckotzbauer/.github/blob/main/SECURITY.md).