helm-diff is a Helm plugin that answers a critical question every Kubernetes operator faces before running helm upgrade: what exactly will change? Rather than discovering unintended modifications after the fact, helm-diff generates a precise, line-by-line comparison between the currently deployed release and the chart you intend to upgrade to. It extends Helm's native capabilities by providing a safe, read-only preview — no resources are modified on your cluster, and the diff is computed entirely client-side.
The plugin operates as a standard Helm plugin registered via plugin.yaml, which declares the diff command name, version 3.15.11, and the platform-specific binary entry point at ${HELM_PLUGIN_DIR}/bin/diff. The entry point is a thin Go binary (main.go) that delegates to the cmd package's Cobra-based command tree, handling authentication plugins for Azure, GCP, OIDC, and exec along the way, and translating structured exit codes into OS-level return values for CI/CD integration.
Sources: main.go, plugin.yaml