stefanprodan / hrval-action

Flux Helm Release validation GitHub action
Apache License 2.0
60 stars 44 forks source link

Add support for caching Helm chart sources #45

Closed mksh closed 3 years ago

mksh commented 3 years ago

Sometimes single Helm release might be referenced multiple times in a single Flux repository, for example, if the staging branch of Helm chart repository is used as a release ref across all staging releases.

In this case, a download delay for each release's chart source acts as a time multiplier for the whole hrval-action run.

This patch adds support for the new helmSourcesCacheEnabled parameter, which allows for caching Helm sources on a local filesystem, so any distinct chart git ref of chart version is downloaded once, and the cached chart source version is used for any subsequent releases values validation.

mksh commented 3 years ago

Will reopen PR after fixing CI failures

mksh commented 3 years ago

Fixed action logic (e7f760b), added bunch of changes to satisfy recently added linters (mostly shell quotation).