charts

package
v0.33.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AvailablePresets

func AvailablePresets() ([]string, error)

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

func HashChartFiles(files map[string]string) string

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

func NormalizeChartMeta(base, content string) string

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

func PresetFiles() (map[string]string, error)

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

func TalmLibraryFiles() (map[string]string, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL