source-controller/internal
Sunny dd86bb9d34 Remove event error
Remove deprecated Event error. Event error was used for scenarios where
an error should result in an event/notification. It was introduced as a
contextual error along with Stalling and Waiting errors but was later
replaced with Generic error which doesn't have any contextual meaning.
The Generic error provided error configuration which allowed defining
how the error should be handled. This replaced the contextual error
handling with error action handlers which behaved on the error
configuration of the errors.

The Generic error was first introduced to be used in GitRepository
reconciler and was used by new reconcilers like the OCIRepository
reconcilers. The old reconcilers bucket, helmrepository and helmchart
reconcilers were still using the deprecated Event error. This change
replaces the Event errors in these reconcilers with a Generic error.

It also fixes a bug in the Generic error constructor which configured
the error to be logged by default. This resulted in an error to be
logged by the result processor and the runtime, double logging. This
behavior has been changed to not log explicitly and allow the runtime to
log the error. Since the Generic error is based on defining the error
handling behavior in the error configuration, a generic error that needs
to be ignored (not returned to the runtime), but logged can enable the
logging behavior explicitly on the Generic error instance. This is done
in GitRepository reconciler for no-op reconciliations where an ignore
error is returned.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
2023-09-15 17:41:43 +05:30
..
cache Delete stale metrics on object delete 2023-08-15 02:35:35 +05:30
controller Remove event error 2023-09-15 17:41:43 +05:30
digest digest: register SHA1 digest algorithm 2023-02-14 12:48:36 +01:00
error Remove event error 2023-09-15 17:41:43 +05:30
features gitrepo: remove `OptimizedGitClones` as a feature gate 2023-06-21 16:48:18 +05:30
fs test: use `T.TempDir` to create temporary test directory 2022-04-29 23:01:39 +08:00
helm helmrepo: fix Secret type check for TLS via `.spec.secretRef` 2023-09-06 00:27:45 +05:30
index controllers: use digest for Bucket revision 2023-02-14 12:48:36 +01:00
mock mock/gcs: strip /storage/v1 URI element 2022-03-16 11:16:47 +01:00
object Promote GitRepository API to v1 2023-03-23 23:17:23 +02:00
oci helm: add support for specifying TLS auth via `.spec.certSecretRef` 2023-07-31 13:29:17 +05:30
predicates [RFC 0002] Flux OCI support for Helm (#690) 2022-05-19 14:50:16 +02:00
reconcile Remove event error 2023-09-15 17:41:43 +05:30
tls helmrepo: fix Secret type check for TLS via `.spec.secretRef` 2023-09-06 00:27:45 +05:30
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