This content originally appeared on DEV Community and was authored by ShoppingJaws
TL;DR
I built kzdiff to provide an easy way to check build result differences in Kustomize. This allows you to confirm changes locally before deployment.
Usage: kzdiff <kustomize-path> [options...]
Options:
-b, --branch <ref> Remote branch or commit to compare against
-r, --ref <ref> Same as -b/--branch (default: auto-detect)
-h, --help Show this help message
-v, --verbose Enable verbose debug logging
--version Show version number
-- Pass remaining arguments to kustomize
Examples:
kzdiff ./examples/overlays/prod
kzdiff ./examples/overlays/prod -b develop
kzdiff ./examples/overlays/prod -r b44e5dcad7aa15e023eb09f24a5b9b968cc46e13
kzdiff ./examples/overlays/prod -- --enable-helm
kzdiff ./examples/overlays/prod -b staging -- --enable-helm
Note: When using commit hashes, use the full 40-character SHA
This content originally appeared on DEV Community and was authored by ShoppingJaws

ShoppingJaws | Sciencx (2025-08-05T04:19:50+00:00) kzdiff – Compare the kustomize build output to that of the default branch. Retrieved from https://www.scien.cx/2025/08/05/kzdiff-compare-the-kustomize-build-output-to-that-of-the-default-branch/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.