Merge pull request #12867 from aauren/add_requirements.lock_warning

feat(load.go): add warning on requirements.lock
pull/13042/head
Matt Farina 6 months ago committed by GitHub
commit c16b1c9f2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -134,6 +134,9 @@ func LoadFiles(files []*BufferedFile) (*chart.Chart, error) {
if c.Metadata == nil {
c.Metadata = new(chart.Metadata)
}
if c.Metadata.APIVersion != chart.APIVersionV1 {
log.Printf("Warning: Dependency locking is handled in Chart.lock since apiVersion \"v2\". We recommend migrating to Chart.lock.")
}
if c.Metadata.APIVersion == chart.APIVersionV1 {
c.Files = append(c.Files, &chart.File{Name: f.Name, Data: f.Data})
}

Loading…
Cancel
Save