diff

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 License: MPL-2.0 Imports: 8 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) 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

createDiff generates a unified diff string between two text inputs.

func GetRepoRoot

func GetRepoRoot() (string, error)

GetRepoRoot finds the top-level directory of the current git repository.

func RenderManifests

func RenderManifests(path string, values []string, debug bool, update bool) (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