MCPcopy
hub / github.com/helm/helm / Load

Function Load

internal/chart/v3/loader/load.go:63–69  ·  view source on GitHub ↗

Load takes a string name, tries to resolve it to a file or directory, and then loads it. This is the preferred way to load a chart. It will discover the chart encoding and hand off to the appropriate chart reader. If a .helmignore file is present, the directory loader will skip loading any files m

(name string)

Source from the content-addressed store, hash-verified

61// If a .helmignore file is present, the directory loader will skip loading any files
62// matching it. But .helmignore is not evaluated when reading out of an archive.
63func Load(name string) (*chart.Chart, error) {
64 l, err := Loader(name)
65 if err != nil {
66 return nil, err
67 }
68 return l.Load()
69}
70
71// LoadFiles loads from in-memory files.
72func LoadFiles(files []*archive.BufferedFile) (*chart.Chart, error) {

Callers 6

CrdsFunction · 0.92
loadChartFunction · 0.92
CreateFromFunction · 0.92
TestLoadFileBackslashFunction · 0.70
TestLoadInvalidArchiveFunction · 0.70

Calls 2

LoaderFunction · 0.70
LoadMethod · 0.65

Tested by 3

loadChartFunction · 0.74
TestLoadFileBackslashFunction · 0.56
TestLoadInvalidArchiveFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…