[#7696] Avoid crash in chart loader on unexpected file sequence

Make sure, that chart metadata is initialized by the time the processing
of the chart is started.

Signed-off-by: Lehel Gyuro <lehel@freemail.hu>
(cherry picked from commit 27807e1bb5)
release-3.4
Lehel Gyuro 5 years ago committed by Matt Farina
parent 5f5975d9c8
commit 5257ee5821

@ -93,7 +93,6 @@ func LoadFiles(files []*BufferedFile) (*chart.Chart, error) {
}
}
for _, f := range files {
c.Raw = append(c.Raw, &chart.File{Name: f.Name, Data: f.Data})
switch {
case f.Name == "Chart.yaml":
// already processed

Loading…
Cancel
Save