diff

package
v0.13.6 Latest Latest
Warning

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

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

Documentation

Overview

Package diff provides functions for comparing rendered manifests

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.

func CreateDiff

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

CreateDiff generates a unified diff string between two text inputs.

func CreateSemanticDiff added in v0.13.0

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

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

func RenderManifests

func RenderManifests(path string, values []string, opts options.CmdOptions) (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