|
|
@ -104,12 +104,12 @@ func LoadFiles(files []*BufferedFile) (*chart.Chart, error) {
|
|
|
|
// Deprecated: requirements.yaml is deprecated use Chart.yaml.
|
|
|
|
// Deprecated: requirements.yaml is deprecated use Chart.yaml.
|
|
|
|
// We will handle it for you because we are nice people
|
|
|
|
// We will handle it for you because we are nice people
|
|
|
|
case f.Name == "requirements.yaml":
|
|
|
|
case f.Name == "requirements.yaml":
|
|
|
|
if c.Metadata.APIVersion != chart.APIVersionV1 {
|
|
|
|
|
|
|
|
log.Printf("Warning: Dependencies are handled in Chart.yaml since apiVersion \"v2\". We recommend migrating dependencies to Chart.yaml.")
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if c.Metadata == nil {
|
|
|
|
if c.Metadata == nil {
|
|
|
|
c.Metadata = new(chart.Metadata)
|
|
|
|
c.Metadata = new(chart.Metadata)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if c.Metadata.APIVersion != chart.APIVersionV1 {
|
|
|
|
|
|
|
|
log.Printf("Warning: Dependencies are handled in Chart.yaml since apiVersion \"v2\". We recommend migrating dependencies to Chart.yaml.")
|
|
|
|
|
|
|
|
}
|
|
|
|
if err := yaml.Unmarshal(f.Data, c.Metadata); err != nil {
|
|
|
|
if err := yaml.Unmarshal(f.Data, c.Metadata); err != nil {
|
|
|
|
return c, errors.Wrap(err, "cannot load requirements.yaml")
|
|
|
|
return c, errors.Wrap(err, "cannot load requirements.yaml")
|
|
|
|
}
|
|
|
|
}
|
|
|
|