Skip to content

Commit

Permalink
Merge pull request #12867 from aauren/add_requirements.lock_warning
Browse files Browse the repository at this point in the history
feat(load.go): add warning on requirements.lock
  • Loading branch information
mattfarina committed May 15, 2024
2 parents ee49972 + 29ab5c4 commit c16b1c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/chart/loader/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -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})
}
Expand Down

0 comments on commit c16b1c9

Please sign in to comment.