checkIfInstallable validates if a chart can be installed Application chart type is only installable
(ch chart.Accessor)
| 356 | // |
| 357 | // Application chart type is only installable |
| 358 | func 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 |
| 369 | func compInstall(args []string, toComplete string, client *action.Install) ([]string, cobra.ShellCompDirective) { |
no test coverage detected
searching dependent graphs…