source-controller/internal/helm/repository
Sunny 8018b450a1 helm: typed errors from GetChartVersion()
Update the implementations of the helm repository downloaders to return
implementation specific typed error from GetChartVersion(). This is
needed to distinguish between persistent build error and transient build
error.
In the case of OCI charts, a transient network failure shouldn't be
considered a persistent build failure of the chart and should be
retried.

Two repository errors, ErrReference and ErrExternal are introduced for
the repository downloader implementations to provide enough context
about the failure which can be used by the caller to add appropriate
context as per the needs. In case of chart builder, it adds the build
error context based on the repository error value.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
2022-12-19 16:12:39 +05:30
..
chart_repository.go helm: typed errors from GetChartVersion() 2022-12-19 16:12:39 +05:30
chart_repository_test.go feat: cache helmrepo early after reconcile 2022-07-21 18:17:26 +01:00
errors.go helm: typed errors from GetChartVersion() 2022-12-19 16:12:39 +05:30
oci_chart_repository.go helm: typed errors from GetChartVersion() 2022-12-19 16:12:39 +05:30
oci_chart_repository_test.go don't fetch tags when exact version is used in HelmRepository 2022-07-27 13:25:43 +02:00
repository.go implement Cosign verification for HelmCharts 2022-10-21 10:00:08 +02:00
utils.go Fix SIGSEGV when resolving charts dependencies 2022-07-13 14:59:38 +02:00
utils_test.go Enable remote dependencies from OCI repositories 2022-07-06 19:11:01 +02:00