mirror of
https://github.com/helm/helm.git
synced 2026-08-07 00:21:27 +00:00
Errors out if install/upgrade fails to load-requirements
Fixes https://github.com/kubernetes/helm/issues/2480
This commit is contained in:
@@ -232,6 +232,8 @@ func (i *installCmd) run() error {
|
||||
if err := checkDependencies(chartRequested, req, i.out); err != nil {
|
||||
return prettyError(err)
|
||||
}
|
||||
} else if err != chartutil.ErrRequirementsNotFound {
|
||||
return fmt.Errorf("cannot load requirements: %v", err)
|
||||
}
|
||||
|
||||
res, err := i.client.InstallReleaseFromChart(
|
||||
|
||||
@@ -185,7 +185,11 @@ func (u *upgradeCmd) run() error {
|
||||
if err := checkDependencies(ch, req, u.out); err != nil {
|
||||
return err
|
||||
}
|
||||
} else if err != chartutil.ErrRequirementsNotFound {
|
||||
return fmt.Errorf("cannot load requirements: %v", err)
|
||||
}
|
||||
} else {
|
||||
return prettyError(err)
|
||||
}
|
||||
|
||||
resp, err := u.client.UpdateRelease(
|
||||
|
||||
Reference in New Issue
Block a user