Skip to content

Commit 1072751

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

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/content/en/blog/news/primary-cache-for-next-recon.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ if you use it, the framework guarantees that the next reconciliation will always
2929

3030
// omitted code
3131

32-
var freshCopy = createFreshCopy(resource);
33-
32+
var freshCopy = createFreshCopy(resource); // need fresh copy just because we use the SSA version of update
3433
freshCopy
3534
.getStatus()
3635
.setValue(statusWithAllocatedValue());
@@ -63,5 +62,5 @@ If we do an update with optimistic locking it simplifies the situation, we can e
6362
Since we know if the update with optimistic locking is successful, we had the fresh resource in our cache.
6463
Thus, the next event we receive will be the one that is results of our update or a newer one.
6564
So if we cache the resource in the overlay cache we know that with the next event, we can remove it from there.
66-
67-
65+
If the update with optimistic locking fails, we can wait until the informer's cache is populated with next resource
66+
version and retry.

0 commit comments

Comments
 (0)