DEV Community

ShoppingJaws
ShoppingJaws

Posted on

kzdiff - Compare the kustomize build output to that of the default branch

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
Enter fullscreen mode Exit fullscreen mode

Top comments (0)