source-controller/internal/helm/chart
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
..
secureloader Build with Go 1.19 2022-09-28 15:35:26 +03:00
builder.go implement Cosign verification for HelmCharts 2022-10-21 10:00:08 +02:00
builder_local.go helm: switch to our own chart loader package 2022-04-11 11:47:28 +02:00
builder_local_test.go Enable remote dependencies from OCI repositories 2022-07-06 19:11:01 +02:00
builder_remote.go helm: typed errors from GetChartVersion() 2022-12-19 16:12:39 +05:30
builder_remote_test.go allow for charts from OCI registries to specify a chart path 2022-08-08 15:44:43 +02:00
builder_test.go allow for charts from OCI registries to specify a chart path 2022-08-08 15:44:43 +02:00
dependency_manager.go Fix aliased chart dependencies resolution 2022-12-16 23:12:27 +01:00
dependency_manager_test.go don't fetch tags when exact version is used in HelmRepository 2022-07-27 13:25:43 +02:00
errors.go implement Cosign verification for HelmCharts 2022-10-21 10:00:08 +02:00
errors_test.go HelmChartReconciler refactor 2022-02-23 12:35:30 +01:00
metadata.go internal/helm: check size of meta files in package 2021-11-23 09:35:27 +01:00
metadata_test.go test: use `T.TempDir` to create temporary test directory 2022-04-29 23:01:39 +08:00