source-controller/internal
Sunny 321317971f
reconcile: Set observed gen when conditions exist
The observed generation must be set only when actual observation is
made. When an actual observation is made, some conditions are set on the
object. Introduce a helper function
addPatchOptionWithStatusObservedGeneration() to set the patcher option
WithStatusObservedGeneration only when there's any condition in the
status.

Updates the existing tests that depended on this behavior.

This fixes the issue where the observed generation is set by the patcher
when a reconciler does an early return for setting the finalizers only.
With this, the observed generation will be updated only when some
observations are made on the object based on the usual rules of success
result, no error, ignore error and stalled condition.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
2022-05-25 14:28:18 +05:30
..
cache Enable dependency manager to use in memory cache 2022-04-19 11:46:27 +02:00
error Introduce Generic error and error Config 2022-05-20 19:52:03 +05:30
features libgit2: enable managed transport by default 2022-05-24 10:46:32 +01:00
fs test: use `T.TempDir` to create temporary test directory 2022-04-29 23:01:39 +08:00
helm include Secret name in returned errors 2022-05-24 10:32:42 +02:00
mock mock/gcs: strip /storage/v1 URI element 2022-03-16 11:16:47 +01:00
object Make generic SummarizeAndPatch() 2022-02-23 12:35:30 +01:00
predicates [RFC 0002] Flux OCI support for Helm (#690) 2022-05-19 14:50:16 +02:00
reconcile reconcile: Set observed gen when conditions exist 2022-05-25 14:28:18 +05:30
transport Move TransportPool to its own package 2022-03-25 19:08:50 +00:00
util fuzz: Update to use v1beta2 APIs 2022-02-23 12:37:48 +01:00