helm/pkg/chart
Paul "TBBle" Hampson 0cb0eaca94 fix(*): Helm v3 handling of APIVersion v1 charts dependencies (#7009)
* Include requirements.* as Files in APIVersionV1

Fixes #6974.

This ensures that when reading a Chart marked with APIVersion v1, we
maintain the behaviour of Helm v2 and include the requirements.yaml and
requirements.lock in the Files collection, and hence produce charts that
work correctly with Helm v2.

Signed-off-by: Paul "Hampy" Hampson <p_hampson@wargaming.net>

* Write out requirements.lock for APIVersion1 Charts

This keeps the on-disk format consistent after `helm dependency update`
of an APIVersion1 Chart.

Signed-off-by: Paul "Hampy" Hampson <p_hampson@wargaming.net>

* Exclude 'dependencies' from APVersion1 Chart.yaml

This fixes `helm lint` against an APIVersion1 chart packaged with Helm
v3.

Signed-off-by: Paul "Hampy" Hampson <p_hampson@wargaming.net>

* Generate APIVersion v2 charts for dependency tests

As the generated chart contains no requirements.yaml in its files list,
but has dependencies in its metadata, it is not a valid APIVersion v1
chart.

Signed-off-by: Paul "Hampy" Hampson <p_hampson@wargaming.net>

* Generate APIVersion v2 charts for manager tests

Specifically for the charts that have dependencies, the generated chart
contains no requirements.yaml in its files but has dependencies in its
metadata. Hence it is not a valid APIVersion v1 chart.

Signed-off-by: Paul "Hampy" Hampson <p_hampson@wargaming.net>
2019-12-11 17:07:05 +00:00
..
loader fix(*): Helm v3 handling of APIVersion v1 charts dependencies (#7009) 2019-12-11 17:07:05 +00:00
chart.go fix(show): restore comments from raw values 2019-11-05 11:50:30 -08:00
chart_test.go fix(show): restore comments from raw values 2019-11-05 11:50:30 -08:00
dependency.go ref(pkg/chart): rename Requirements to Dependencies 2018-11-28 10:20:33 -08:00
errors.go ref(pkg/chartutil): break up chartutil into logical files 2019-05-22 19:38:11 +02:00
file.go fix(chart): add JSON tags to chart object 2019-11-01 14:50:32 -07:00
metadata.go feat: Add support for a crds/ directory 2019-08-16 16:26:55 -06:00