Commit eb3624a5 authored by Matt Butcher's avatar Matt Butcher Committed by GitHub

Merge pull request #1486 from poopoothegorilla/fix/add-chart-dir-err

fix(pkg/chartutil): add error if chart yaml not in directory
parents 6f8fb055 7a054e0e
......@@ -87,6 +87,10 @@ func LoadArchive(in io.Reader) (*chart.Chart, error) {
parts := strings.Split(hd.Name, "/")
n := strings.Join(parts[1:], "/")
if parts[0] == "Chart.yaml" {
return nil, errors.New("chart yaml not in base directory")
}
if _, err := io.Copy(b, tr); err != nil {
return &chart.Chart{}, err
}
......
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