helm/pkg/chartutil
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
..
testdata Add a flag to allow template to output CRDs 2019-12-03 14:06:55 -05:00
capabilities.go fix(chartutil): Add the v1 apiextensions to the default scheme 2019-10-29 12:10:58 -06:00
capabilities_test.go feat(template): Ports api-versions flag to v3 2019-10-07 13:30:06 -06:00
chartfile.go fix(*): Helm v3 handling of APIVersion v1 charts dependencies (#7009) 2019-12-11 17:07:05 +00:00
chartfile_test.go Updating the module for v3 as the major version 2019-10-03 14:27:05 -04:00
coalesce.go fix(chartutil): Uses copystructure for deep copy to avoid using gob 2019-10-17 16:02:51 -05:00
coalesce_test.go fix install storing computed values in release instead of user supplied values 2019-09-14 20:34:48 +05:30
compatible.go Update dependencies 2019-10-03 13:49:07 -04:00
compatible_test.go ref(*): Moves packages to internal 2019-08-09 16:02:33 -06:00
create.go Add namespace option to example kubectl command 2019-10-30 14:29:39 -06:00
create_test.go fix(chartutil): port over enhancements to helm create from Helm 2 2019-10-03 12:34:58 -07:00
dependencies.go Updating the module for v3 as the major version 2019-10-03 14:27:05 -04:00
dependencies_test.go Updating the module for v3 as the major version 2019-10-03 14:27:05 -04:00
doc.go Updating the module for v3 as the major version 2019-10-03 14:27:05 -04:00
errors.go Fix chartutils/errors.go stack overflow 2019-10-15 15:03:36 -07:00
errors_test.go Fix chartutils/errors.go stack overflow 2019-10-15 15:03:36 -07:00
expand.go Remove impossible condition reported by linter 2019-10-09 23:18:03 -04:00
expand_test.go feat(lint): Ports v2 functionality for linting pre-release charts 2019-10-10 16:58:47 -06:00
jsonschema.go Updating the module for v3 as the major version 2019-10-03 14:27:05 -04:00
jsonschema_test.go Updating the module for v3 as the major version 2019-10-03 14:27:05 -04:00
save.go fix(*): Helm v3 handling of APIVersion v1 charts dependencies (#7009) 2019-12-11 17:07:05 +00:00
save_test.go fix(pkg/chartutil): add tests according to feedback 2019-10-11 10:49:43 +02:00
values.go Revert "chartutil.ReadValues is forced to unmarshal numbers into json.Number refs #1707 [dev-v3]" 2019-10-23 09:27:51 +02:00
values_test.go Revert "chartutil.ReadValues is forced to unmarshal numbers into json.Number refs #1707 [dev-v3]" 2019-10-23 09:27:51 +02:00