Review Helm changes like a Terraform plan.
helm-diff-summary turns noisy helm diff output into a compact deployment summary that is easy to read in terminals, CI logs, pull requests, and chat notifications.
helm diff upgrade app ./chart --allow-unreleased --output diff | helm-diff-summary+------------+-------------------+-------------+--------+----------+-----------+---------+
| KIND | NAME | NAMESPACE | ACTION | SEVERITY | CATEGORY | CHANGES |
+------------+-------------------+-------------+--------+----------+-----------+---------+
| Deployment | sample-api | production | UPDATE | HIGH | WORKLOAD | 12 |
| ConfigMap | sample-config | production | UPDATE | MEDIUM | CONFIG | 3 |
| Service | sample | production | CREATE | LOW | NETWORK | 4 |
+------------+-------------------+-------------+--------+----------+-----------+---------+
Plan: 1 to create, 2 to update, 0 to delete.
Raw Helm diffs are useful, but they become hard to review when charts grow, generated manifests are large, or deployment changes need approval in a pull request.
helm-diff-summary helps platform and application teams answer the questions that matter before a release:
- What Kubernetes resources will change?
- Are resources being created, updated, or deleted?
- Are risky resources or namespaces involved?
- Should CI fail because a delete or high-severity policy violation was detected?
- Can the same summary be sent to Slack, Microsoft Teams, Google Chat, or a webhook?
- Summarizes
helm diff upgrade --output diffinto a Terraform-style plan - Detects
CREATE,UPDATE, andDELETE - Adds approximate logical change counts per resource
- Classifies resources by severity and category
- Supports custom policy checks from
helm-diff-summary.yaml - Can fail CI on deletes or policy severity thresholds
- Renders terminal tables, JSON, and YAML
- Sends summaries to Slack, Microsoft Teams, Google Chat, and generic webhooks
- Works without Kubernetes cluster access because it reads
helm diffoutput from stdin - Ships as a single binary, Helm plugin, Docker image, and Homebrew formula
The optional plugin supports both Helm 3 and Helm 4, using the same plugin layout as helm-images and helm-drift.
Install with Helm 3:
helm plugin install https://github.com/nikhilsbhat/helm-diff-summary --version v0.0.3Install with Helm 4:
helm plugin install https://github.com/nikhilsbhat/helm-diff-summary --version v0.0.3 --verify=falseUsage is identical on both versions:
helm diff upgrade app ./chart --allow-unreleased --output diff | helm diff-summaryThe plugin invokes the same executable as the standalone helm-diff-summary command. All summary flags work after helm diff-summary, including -o json, --fail-on high, --fail-on-delete, and --notify slack. Policy files are still read from your working directory. Install helm-diff separately to produce the input.
helm diff upgrade app ./chart --output diff | helm diff-summary --fail-on-delete
helm plugin update diff-summary
helm plugin uninstall diff-summaryPlugin installation is available starting with v0.0.3. The commands above require that release to be published; earlier tags do not contain a plugin manifest. Omit --version to select the latest release.
The download hook supports Linux, macOS, and FreeBSD with curl, tar, and either sha256sum or shasum. It downloads the version recorded in plugin.yaml and verifies the release archive checksum before installation. Windows users can use the standalone executable.
The shared manifest uses the Helm 3 format, which Helm 4 also supports. Helm 4's --verify=false is required for this Git-based installation because the source does not provide Helm plugin provenance; the hook still verifies the binary archive checksum. CI runs plugin integration tests against both Helm 3.19.0 and Helm 4.1.3.
For a checkout that has not been released yet, build and install locally:
make local/install
helm diff-summary --helpRun make test/plugin to test the installer and Helm invocation in temporary directories. See Releasing for the version, tagging, signing, and publishing steps. Plugin installation from historical Git tags predating plugin.yaml is not supported.
go install github.com/nikhilsbhat/helm-diff-summary@latestDownload signed release artifacts from the releases page.
brew tap nikhilsbhat/stable https://github.com/nikhilsbhat/homebrew-stable.git
brew install nikhilsbhat/stable/helm-diff-summaryInstall a specific version:
brew install nikhilsbhat/stable/helm-diff-summary@0.0.3docker pull ghcr.io/nikhilsbhat/helm-diff-summary:latest
docker pull ghcr.io/nikhilsbhat/helm-diff-summary:<github-release-tag>git clone https://github.com/nikhilsbhat/helm-diff-summary.git
cd helm-diff-summary
make local/buildInstall Helm and the helm diff plugin:
helm plugin install https://github.com/databus23/helm-diffhelm diff upgrade my-release ./chart \
--output diff | helm-diff-summaryhelm diff upgrade my-release ./chart \
--allow-unreleased \
--output diff | helm-diff-summaryhelm diff upgrade my-release ./chart \
--output diff | helm-diff-summary -o json
helm diff upgrade my-release ./chart \
--output diff | helm-diff-summary -o yamlhelm diff upgrade my-release ./chart \
--output diff | helm-diff-summary --fail-on-deletehelm diff upgrade my-release ./chart \
--output diff | helm-diff-summary --fail-on highSupported thresholds are low, medium, high, and critical.
name: Helm diff summary
on:
pull_request:
jobs:
helm-diff-summary:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: azure/setup-helm@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- name: Install helm-diff
run: helm plugin install https://github.com/databus23/helm-diff
- name: Install helm-diff-summary
run: go install github.com/nikhilsbhat/helm-diff-summary@latest
- name: Summarize Helm diff
run: |
helm diff upgrade my-release ./chart \
--allow-unreleased \
--namespace production \
--output diff | helm-diff-summary --fail-on highhelm-diff-summary:
image: golang:1
script:
- curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
- helm plugin install https://github.com/databus23/helm-diff
- go install github.com/nikhilsbhat/helm-diff-summary@latest
- helm diff upgrade my-release ./chart --allow-unreleased --output diff | helm-diff-summary --fail-on highCreate helm-diff-summary.yaml in the working directory to flag risky changes.
policies:
- name: resource-deletion
action: DELETE
severity: CRITICAL
message: resource deletion detected
- name: production-namespace
namespace: production
severity: HIGH
message: change detected in production namespace
- name: crd-update
kind: CustomResourceDefinition
action: UPDATE
severity: CRITICAL
message: CRD modification detected
- name: large-change
min_changes: 100
severity: MEDIUM
message: large resource change detectedSee helm-diff-summary.sample.yaml for a fuller example.
Supported policy fields:
| Field | Description |
|---|---|
name |
Unique policy name |
kind |
Kubernetes resource kind |
category |
Resource category |
action |
Change action: CREATE, UPDATE, or DELETE |
namespace |
Kubernetes namespace |
severity |
LOW, MEDIUM, HIGH, or CRITICAL |
message |
Violation message |
min_changes |
Minimum changed lines threshold |
Send deployment summaries and policy violations to external systems.
export SLACK_WEBHOOK_URL=https://hooks.slack.com/services/xxx
helm diff upgrade app ./chart \
--output diff | helm-diff-summary --notify slackexport TEAMS_WEBHOOK_URL=https://example.webhook.office.com/xxx
helm diff upgrade app ./chart \
--output diff | helm-diff-summary --notify teamsexport GCHAT_WEBHOOK_URL=https://chat.googleapis.com/xxx
helm diff upgrade app ./chart \
--output diff | helm-diff-summary --notify gchatexport WEBHOOK_URL=https://example.com/webhook
helm diff upgrade app ./chart \
--output diff | helm-diff-summary --notify webhookMultiple targets can be used together:
helm diff upgrade app ./chart \
--output diff | helm-diff-summary --notify slack,teamsWebhook credentials are read from environment variables so they do not appear in shell history, CI logs, or process lists.
helm-diff-summary parses resource headers emitted by helm diff.
production, sample-api, Deployment (apps) has changed:
From each resource block it extracts the namespace, name, kind, action, severity, and logical change count.
Logical change counts are intentionally approximate. For an update like this:
- image: app:v1
+ image: app:v2the tool reports one logical update instead of two raw diff lines.
This tool currently parses unified diff output. It does not yet perform semantic YAML diffing, Kubernetes-aware field comparison, or exact field-level mutation analysis. Formatting-only changes may still appear as updates.
Generated command documentation is available in docs/doc/helm-diff-summary.md.
go test ./...
go run . < diff.txtGenerate command documentation:
make generate/documentBuild a local binary:
make local/buildIf this project helps your Helm or GitOps workflow, a star, issue, or example workflow goes a long way.
Recommended GitHub topics for the repository:
helm, helm-diff, kubernetes, gitops, ci-cd, devops, platform-engineering, sre, terraform-plan, pull-request, argocd, fluxcd
MIT