source-controller/internal
Sunny 7a6fd7887a Make generic SummarizeAndPatch()
summarizeAndPatch() was used by all the reconcilers with their own
object type. This creates a generic SummarizeAndPatch helper that takes
a conditions.Setter object and performs the same operations. All the
reconcilers are updated to use SummarizeAndPatch(). The process of
summarize and patch can be configured using the HelperOptions.

Introduce ResultProcessor to allow injecting middlewares in the
SummarizeAndPatch process.

Introduce RuntimeResultBuilder to allow defining how the reconciliation
result is computed for specific reconciler. This enabled different
reconcilers to have different meanings of the reconciliation results.

Introduce Conditions in summary package to store all the status
conditions related information of a reconciler. This is passed to
SummarizeAndPatch() to be used for summary and patch calculation.

Remove all the redundant summarizeAndPatch() tests per reconciler.

Add package internal/object containing helpers for interacting with
runtime.Object needed by the generic SummarizeAndPatch().

Add tests for ComputeReconcileResult().

Signed-off-by: Sunny <darkowlzz@protonmail.com>
2022-02-15 15:55:45 +05:30
..
error Consolidate result conversion and computation 2022-02-15 15:55:45 +05:30
fs Update github.com/libgit2/git2go to v31.6.1 2021-09-30 16:36:20 +02:00
helm internal/helm: ErrChartReference on local load err 2022-02-15 15:55:45 +05:30
object Make generic SummarizeAndPatch() 2022-02-15 15:55:45 +05:30
reconcile Make generic SummarizeAndPatch() 2022-02-15 15:55:45 +05:30
util internal/util: introduce temp dir/path helpers 2022-02-15 15:40:58 +05:30