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

Function Load

pkg/chart/loader/load.go:61–67  ·  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

59// If a .helmignore file is present, the directory loader will skip loading any files
60// matching it. But .helmignore is not evaluated when reading out of an archive.
61func Load(name string) (chart.Charter, error) {
62 l, err := Loader(name)
63 if err != nil {
64 return nil, err
65 }
66 return l.Load()
67}
68
69// DirLoader loads a chart from a directory
70type DirLoader string

Callers 2

runInstallFunction · 0.92
newUpgradeCmdFunction · 0.92

Calls 2

LoaderFunction · 0.70
LoadMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…