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

Method run

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

Source from the content-addressed store, hash-verified

95}
96
97func (o *createOptions) run(out io.Writer) error {
98 fmt.Fprintf(out, "Creating %s\n", o.name)
99
100 switch o.chartAPIVersion {
101 case chart.APIVersionV2, "":
102 return o.createV2Chart(out)
103 case chartv3.APIVersionV3:
104 if !gates.ChartV3.IsEnabled() {
105 return gates.ChartV3.Error()
106 }
107 return o.createV3Chart(out)
108 default:
109 return fmt.Errorf("unsupported chart API version: %s (supported: v2, v3)", o.chartAPIVersion)
110 }
111}
112
113func (o *createOptions) createV2Chart(out io.Writer) error {
114 chartname := filepath.Base(o.name)

Callers 1

newCreateCmdFunction · 0.95

Calls 4

createV2ChartMethod · 0.95
createV3ChartMethod · 0.95
IsEnabledMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected