Commit 544bf5b7 authored by Matt Butcher's avatar Matt Butcher Committed by GitHub

Merge pull request #2241 from sushilkm/issues/2240

Replaced InstallRelease with InstallReleaseFromChart in cmd/install.go
parents 6506c145 72c0c1ae
...@@ -202,14 +202,17 @@ func (i *installCmd) run() error { ...@@ -202,14 +202,17 @@ func (i *installCmd) run() error {
} }
// Check chart requirements to make sure all dependencies are present in /charts // Check chart requirements to make sure all dependencies are present in /charts
if c, err := chartutil.Load(i.chartPath); err == nil { chartRequested, err := chartutil.Load(i.chartPath)
if req, err := chartutil.LoadRequirements(c); err == nil { if err != nil {
checkDependencies(c, req, i.out) return prettyError(err)
} }
if req, err := chartutil.LoadRequirements(chartRequested); err == nil {
checkDependencies(chartRequested, req, i.out)
} }
res, err := i.client.InstallRelease( res, err := i.client.InstallReleaseFromChart(
i.chartPath, chartRequested,
i.namespace, i.namespace,
helm.ValueOverrides(rawVals), helm.ValueOverrides(rawVals),
helm.ReleaseName(i.name), helm.ReleaseName(i.name),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment