Skip to content

Commit a510cc7

Browse files
committed
wip
Signed-off-by: Attila Mészáros <[email protected]>
1 parent 720a4c5 commit a510cc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/content/en/docs/documentation/reconciler.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ needs to be set to `false` you can use an explicit caching approach:
245245
StatusPatchPrimaryCacheCustomResource primary,
246246
Context<StatusPatchPrimaryCacheCustomResource> context) {
247247

248-
//
248+
// cache will compare the current and the cached resource and return the more recent. (And evic the old)
249249
primary = cache.getFreshResource(primary);
250250

251251
// omitted logic
@@ -278,7 +278,7 @@ As shown in the example above, it is up to you to provide a predicate to determi
278278
In other words, when to evict the resource from the cache. Typically, as show in the [integration test](https://github.com/operator-framework/java-operator-sdk/blob/main/operator-framework/src/test/java/io/javaoperatorsdk/operator/baseapi/statuscache/primarycache)
279279
you can have a counter in status to check on that.
280280

281-
Since all of this happens explicitly, you cannot use this approach for managed dependent resources and workflows;
281+
Since all of this happens explicitly, you cannot use this approach for managed dependent resources and workflows (you can still use not managed);
282282
Since passing of the primary resource to the dependent resource always comes directly from the underlying informer event
283283
source cache.
284284

0 commit comments

Comments
 (0)