Errors out if install/upgrade fails to load-requirements

Fixes https://github.com/kubernetes/helm/issues/2480
pull/2481/head
Sushil Kumar 8 years ago
parent d76c1049d0
commit 18f900e443

@ -232,6 +232,8 @@ func (i *installCmd) run() error {
if err := checkDependencies(chartRequested, req, i.out); err != nil { if err := checkDependencies(chartRequested, req, i.out); err != nil {
return prettyError(err) return prettyError(err)
} }
} else if err != chartutil.ErrRequirementsNotFound {
return fmt.Errorf("cannot load requirements: %v", err)
} }
res, err := i.client.InstallReleaseFromChart( res, err := i.client.InstallReleaseFromChart(

@ -185,7 +185,11 @@ func (u *upgradeCmd) run() error {
if err := checkDependencies(ch, req, u.out); err != nil { if err := checkDependencies(ch, req, u.out); err != nil {
return err return err
} }
} else if err != chartutil.ErrRequirementsNotFound {
return fmt.Errorf("cannot load requirements: %v", err)
} }
} else {
return prettyError(err)
} }
resp, err := u.client.UpdateRelease( resp, err := u.client.UpdateRelease(

Loading…
Cancel
Save