diff

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package diff provides functions for comparing rendered manifests It includes our simple CreateDiff functions as well as a semantic diff using the homeport/dyff module for more advanced diff features

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorizeDiff

func ColorizeDiff(diff string, plain bool) string

colorizeDiff adds simple ANSI colors to a diff string. We want to see this output in a terminal or as a comment on a PR Fast readability is important

func CreateDiff

func CreateDiff(a, b string, fromName, toName string) string

This is the original simple diff configuration createDiff generates a unified diff string between two text inputs.

func CreateSemanticDiff added in v0.3.0

func CreateSemanticDiff(targetRender, localRender, fromName, toName string, plain bool) (*dyff.HumanReport, error)

This is more complex but k8s object aware diff engine it is better suited for larger scale changes to a k8s resources

func PrintChangeSummary added in v0.3.3

func PrintChangeSummary(report dyff.Report) error

PrintChangeSummary prints a concise summary of changes categorized by type

func RenderManifests

func RenderManifests(path string, values []string, debug bool, update bool, release string) (string, error)

RenderManifests will render a Helm Chart or build a Kustomization and return the rendered manifests as a string

Types

This section is empty.

Jump to

Keyboard shortcuts

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