Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvailablePresets ¶
AvailablePresets returns a list of available preset chart names. The presetGenericName preset is always first if it exists.
func HashChartFiles ¶ added in v0.33.0
HashChartFiles returns a deterministic digest of a chart tree described as a path→content map. The digest folds in the sorted set of (path, content) pairs and is independent of map iteration order. Each path and content is length-prefixed so distinct trees cannot collide by a fortunate alignment of concatenated bytes. Two trees hash equal iff they carry the same files with the same bytes — the signal the drift check relies on.
func NormalizeChartMeta ¶ added in v0.33.0
NormalizeChartMeta rewrites the name/version lines of a Chart.yaml to %s placeholders. Files other than Chart.yaml pass through unchanged. base is the file's base name (e.g. path.Base(p)). Keeping a single normalizer means the init-time substitution and the content-drift comparison treat chart metadata identically.
func PresetFiles ¶
PresetFiles returns a map of file paths to their contents. For Chart.yaml files, name and version are replaced with %s placeholders.
func TalmLibraryFiles ¶ added in v0.33.0
TalmLibraryFiles returns the embedded talm library chart keyed by path relative to the talm/ root (e.g. "Chart.yaml", "templates/_helpers.tpl"), so the keys line up with a project's vendored charts/talm/ tree. Chart.yaml metadata is normalized via NormalizeChartMeta, so a version stamp is not treated as content. It is the embedded counterpart compared against the vendored copy to surface chart drift after a binary upgrade.
Types ¶
This section is empty.