source-controller/internal
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
..
cache Build with Go 1.19 2022-09-28 15:35:26 +03:00
error Introduce Generic error and error Config 2022-05-20 19:52:03 +05:30
features features: Remove ForceGoGitImplementation 2022-12-12 15:34:31 +00:00
fs test: use `T.TempDir` to create temporary test directory 2022-04-29 23:01:39 +08:00
helm helm: typed errors from GetChartVersion() 2022-12-19 16:12:39 +05:30
mock mock/gcs: strip /storage/v1 URI element 2022-03-16 11:16:47 +01:00
object internal/object: setter/getter suspend & artifact 2022-10-20 17:22:11 +05:30
oci addressing review comments 2022-10-21 10:00:08 +02:00
predicates [RFC 0002] Flux OCI support for Helm (#690) 2022-05-19 14:50:16 +02:00
reconcile Use Flux Event API v1beta1 2022-11-09 11:06:23 +02:00
transport internal/helm/getter: remove transport reuse test 2022-06-14 09:25:52 +01:00
util Refactor internal OCI package 2022-09-20 18:34:02 +03:00