helm/pkg/downloader
Martin Hickey 5ec70ab27f
fix(chart): lock digest differs when dependency build with Helm 2 and then Helm 3 (#7261)
* Fix issue with apiVersion v1 lock digest

When apiVersion v1 chart dependencies are built with Helm 2
and then built with Helm 3, the lock digests differ. To avoid
this issue, a depdendency update is forced.

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>

* Check against Helm v2 hash

Handle scenario where dependency hash was generated by Helm v2
but need to do a dependency build with Helm v3.

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>

* Add unit test

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>

* Refactor unit test

Refactor unit test to use an existing chart as dependency

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>

* Update after review

Comments:
- https://github.com/helm/helm/pull/7261#discussion_r373827088
- https://github.com/helm/helm/pull/7261#discussion_r373827250

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2020-02-05 09:38:30 +01:00
..
testdata chart_downloader: add test to verify that http opts are used correctly. (#7055) 2019-11-25 14:03:27 +01:00
chart_downloader.go chart_downloader: avoid overriding TLS options from command flags when not setup in repo config. 2019-11-25 14:03:52 +01:00
chart_downloader_test.go chart_downloader: fix lint issue. 2019-11-25 14:17:38 +01:00
doc.go feat(cli): support XDG base directory specification 2019-08-02 13:15:03 -07:00
manager.go fix(chart): lock digest differs when dependency build with Helm 2 and then Helm 3 (#7261) 2020-02-05 09:38:30 +01:00
manager_test.go fix(*): Helm v3 handling of APIVersion v1 charts dependencies (#7009) 2019-12-11 17:07:05 +00:00