rdv

command module
v0.13.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2025 License: MPL-2.0 Imports: 1 Imported by: 0

README

rdv (render-diff-validate)

rdv provides a fast and local preview of your rendered Kubernetes manifest changes.

It renders your local Helm chart or Kustomize overlay, validates rendered manifests via kubeconform and then compares the resulting manifests against the version in a target git ref (like 'main' or 'develop').

It prints a colored diff of the final rendered YAML.

Requirements

  • make
  • git
  • Go 1.24 or newer

Installation

You can install rdv directly using go install:

go install github.com/dlactin/rdv@latest

Flags

Flag Shorthand Description Default
--path -p Relative path to the chart or kustomization directory. .
--ref -r Target Git ref to compare against. Will try to find its remote-tracking branch (e.g., origin/main). main
--values -f Path to an additional values file (can be specified multiple times). []
--update -u Update helm chart dependencies. Required if lockfile does not match dependencies false
--semantic -s Enable semantic diffing of k8s manifests (using dyff) false
--debug -d Enable verbose logging for debugging false
--validate -v Validate rendered manifests with kubeconform false
--output -o Write the local and target rendered manifests to a specific file path false
--version Prints the application version.
--help -h Show help information.

Examples

This must be run while your current directory is within your git repository
Checking a Helm Chart diff against another target ref
  • rdv -p ./examples/helm/helloworld -f values-dev.yaml -r development
Checking a Helm Chart diff and validating our rendered manifests
  • rdv -p ./examples/helm/helloworld --validate
Checking Kustomize diff against the default (main) branch
  • rdv -p ./examples/kustomize/helloworld
Checking Kustomize diff against a tag
  • rdv -p ./examples/kustomize/helloworld -r tags/v0.5.1

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package cmd implements the command-line interface for rdv using the Cobra library.
Package cmd implements the command-line interface for rdv using the Cobra library.
internal
diff
Package diff provides functions for comparing rendered manifests
Package diff provides functions for comparing rendered manifests
git
Package git provides functions for setting up a temporary git work tree
Package git provides functions for setting up a temporary git work tree
helm
Package helm provides functions to render helm charts, load multiple values files provided as a cli flag and check if the provided path is a helm chart
Package helm provides functions to render helm charts, load multiple values files provided as a cli flag and check if the provided path is a helm chart
kustomize
Package kustomize provides functions to build kustomizations, and check if the provided path contains kustomizations
Package kustomize provides functions to build kustomizations, and check if the provided path contains kustomizations
validate
Package validate provides functions to validate rendered manifests We're using the kubeconform library here for manifest validation against the default schemas supported by kubeconform.
Package validate provides functions to validate rendered manifests We're using the kubeconform library here for manifest validation against the default schemas supported by kubeconform.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL