MCPcopy Index your code
hub / github.com/helm/helm / LoadChartfile

Function LoadChartfile

pkg/chart/v2/util/chartfile.go:32–40  ·  view source on GitHub ↗

LoadChartfile loads a Chart.yaml file into a *chart.Metadata.

(filename string)

Source from the content-addressed store, hash-verified

30
31// LoadChartfile loads a Chart.yaml file into a *chart.Metadata.
32func LoadChartfile(filename string) (*chart.Metadata, error) {
33 b, err := os.ReadFile(filename)
34 if err != nil {
35 return nil, err
36 }
37 y := new(chart.Metadata)
38 err = yaml.Unmarshal(b, y)
39 return y, err
40}
41
42// StrictLoadChartfile loads a Chart.yaml into a *chart.Metadata using a strict unmarshaling
43func StrictLoadChartfile(filename string) (*chart.Metadata, error) {

Callers 1

TestLoadChartfileFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestLoadChartfileFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…