MCPcopy
hub / github.com/helm/helm / buildChart

Function buildChart

pkg/action/action_test.go:125–132  ·  view source on GitHub ↗
(opts ...chartOption)

Source from the content-addressed store, hash-verified

123type chartOption func(*chartOptions)
124
125func buildChart(opts ...chartOption) *chart.Chart {
126 modTime := time.Now()
127 defaultTemplates := []*common.File{
128 {Name: "templates/hello", ModTime: modTime, Data: []byte("hello: world")},
129 {Name: "templates/hooks", ModTime: modTime, Data: []byte(manifestWithHook)},
130 }
131 return buildChartWithTemplates(defaultTemplates, opts...)
132}
133
134func buildChartWithTemplates(templates []*common.File, opts ...chartOption) *chart.Chart {
135 c := &chartOptions{

Calls 2

buildChartWithTemplatesFunction · 0.85
NowMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…