Documentation
¶
Overview ¶
Package diff provides functions for comparing rendered manifests
Index ¶
- func ColorizeDiff(diff string, plain bool) string
- func CreateDiff(a, b string, fromName, toName string) string
- func CreateSemanticDiff(targetRender, localRender, fromName, toName string, plain bool) (*dyff.HumanReport, error)
- func RenderManifests(path string, values []string, opts options.CmdOptions) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorizeDiff ¶
ColorizeDiff adds simple ANSI colors to a diff string.
func CreateDiff ¶
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 ¶
RenderManifests will render a Helm Chart or build a Kustomization and return the rendered manifests as a string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.