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

Function Load

pkg/chart/v2/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 15

CrdsFunction · 0.92
LintMethod · 0.92
loadChartFunction · 0.92
CreateFromFunction · 0.92
ListMethod · 0.92
statArchiveForStatusFunction · 0.92
printMissingMethod · 0.92
RunMethod · 0.92
TestUpgradeCmdFunction · 0.92
prepareMockReleaseFunction · 0.92
TestSetAppVersionFunction · 0.92

Calls 2

LoaderFunction · 0.70
LoadMethod · 0.65

Tested by 7

loadChartFunction · 0.74
TestUpgradeCmdFunction · 0.74
prepareMockReleaseFunction · 0.74
TestSetAppVersionFunction · 0.74
TestLoadFileBackslashFunction · 0.56
TestLoadInvalidArchiveFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…