feat(load.go): add warning on requirements.lock

Signed-off-by: Aaron U'Ren <aauren@users.noreply.github.com>
(cherry picked from commit 29ab5c4b02)
release-3.15
Aaron U'Ren 8 months ago committed by Matt Farina
parent e211f2aa62
commit 23552a7de6
No known key found for this signature in database
GPG Key ID: 92C44A3D421FF7F9

@ -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