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

Method createV3Chart

pkg/cmd/create.go:139–163  ·  view source on GitHub ↗
(out io.Writer)

Source from the content-addressed store, hash-verified

137}
138
139func (o *createOptions) createV3Chart(out io.Writer) error {
140 chartname := filepath.Base(o.name)
141 cfile := &chartv3.Metadata{
142 Name: chartname,
143 Description: "A Helm chart for Kubernetes",
144 Type: "application",
145 Version: "0.1.0",
146 AppVersion: "0.1.0",
147 APIVersion: chartv3.APIVersionV3,
148 }
149
150 if o.starter != "" {
151 // Create from the starter
152 lstarter := filepath.Join(o.starterDir, o.starter)
153 // If path is absolute, we don't want to prefix it with helm starters folder
154 if filepath.IsAbs(o.starter) {
155 lstarter = o.starter
156 }
157 return chartutilv3.CreateFrom(cfile, filepath.Dir(o.name), lstarter)
158 }
159
160 chartutilv3.Stderr = out
161 _, err := chartutilv3.Create(chartname, filepath.Dir(o.name))
162 return err
163}

Callers 1

runMethod · 0.95

Calls 2

DirMethod · 0.65
CreateMethod · 0.65

Tested by

no test coverage detected