MCPcopy
hub / github.com/helm/helm / checkIfInstallable

Function checkIfInstallable

pkg/cmd/install.go:358–366  ·  view source on GitHub ↗

checkIfInstallable validates if a chart can be installed Application chart type is only installable

(ch chart.Accessor)

Source from the content-addressed store, hash-verified

356//
357// Application chart type is only installable
358func checkIfInstallable(ch chart.Accessor) error {
359 meta := ch.MetadataAsMap()
360
361 switch meta["Type"] {
362 case "", "application":
363 return nil
364 }
365 return fmt.Errorf("%s charts are not installable", meta["Type"])
366}
367
368// Provide dynamic auto-completion for the install and template commands
369func compInstall(args []string, toComplete string, client *action.Install) ([]string, cobra.ShellCompDirective) {

Callers 1

runInstallFunction · 0.85

Calls 1

MetadataAsMapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…