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 ¶
- 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 PrintChangeSummary(report dyff.Report) error
- func RenderManifests(path string, values []string, debug bool, update bool, release string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorizeDiff ¶
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 ¶
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
PrintChangeSummary prints a concise summary of changes categorized by type
Types ¶
This section is empty.