|
|
@ -119,6 +119,7 @@ type installCmd struct {
|
|
|
|
wait bool
|
|
|
|
wait bool
|
|
|
|
repoURL string
|
|
|
|
repoURL string
|
|
|
|
devel bool
|
|
|
|
devel bool
|
|
|
|
|
|
|
|
depUp bool
|
|
|
|
|
|
|
|
|
|
|
|
certFile string
|
|
|
|
certFile string
|
|
|
|
keyFile string
|
|
|
|
keyFile string
|
|
|
@ -194,6 +195,7 @@ func newInstallCmd(c helm.Interface, out io.Writer) *cobra.Command {
|
|
|
|
f.StringVar(&inst.keyFile, "key-file", "", "identify HTTPS client using this SSL key file")
|
|
|
|
f.StringVar(&inst.keyFile, "key-file", "", "identify HTTPS client using this SSL key file")
|
|
|
|
f.StringVar(&inst.caFile, "ca-file", "", "verify certificates of HTTPS-enabled servers using this CA bundle")
|
|
|
|
f.StringVar(&inst.caFile, "ca-file", "", "verify certificates of HTTPS-enabled servers using this CA bundle")
|
|
|
|
f.BoolVar(&inst.devel, "devel", false, "use development versions, too. Equivalent to version '>0.0.0-0'. If --version is set, this is ignored.")
|
|
|
|
f.BoolVar(&inst.devel, "devel", false, "use development versions, too. Equivalent to version '>0.0.0-0'. If --version is set, this is ignored.")
|
|
|
|
|
|
|
|
f.BoolVar(&inst.depUp, "dep-up", false, "run helm dependency update before installing the chart")
|
|
|
|
|
|
|
|
|
|
|
|
return cmd
|
|
|
|
return cmd
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -231,8 +233,23 @@ func (i *installCmd) run() error {
|
|
|
|
// As of Helm 2.4.0, this is treated as a stopping condition:
|
|
|
|
// As of Helm 2.4.0, this is treated as a stopping condition:
|
|
|
|
// https://github.com/kubernetes/helm/issues/2209
|
|
|
|
// https://github.com/kubernetes/helm/issues/2209
|
|
|
|
if err := checkDependencies(chartRequested, req); err != nil {
|
|
|
|
if err := checkDependencies(chartRequested, req); err != nil {
|
|
|
|
|
|
|
|
if i.depUp {
|
|
|
|
|
|
|
|
man := &downloader.Manager{
|
|
|
|
|
|
|
|
Out: i.out,
|
|
|
|
|
|
|
|
ChartPath: i.chartPath,
|
|
|
|
|
|
|
|
HelmHome: settings.Home,
|
|
|
|
|
|
|
|
Keyring: defaultKeyring(),
|
|
|
|
|
|
|
|
SkipUpdate: false,
|
|
|
|
|
|
|
|
Getters: getter.All(settings),
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if err := man.Update(); err != nil {
|
|
|
|
|
|
|
|
return prettyError(err)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
return prettyError(err)
|
|
|
|
return prettyError(err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
} else if err != chartutil.ErrRequirementsNotFound {
|
|
|
|
} else if err != chartutil.ErrRequirementsNotFound {
|
|
|
|
return fmt.Errorf("cannot load requirements: %v", err)
|
|
|
|
return fmt.Errorf("cannot load requirements: %v", err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|