Skip to content

improve: status cache for next reconciliation - only the lock version #2800

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
May 16, 2025
Prev Previous commit
Next Next commit
naming
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
  • Loading branch information
csviri committed May 16, 2025
commit dba5df884fe611e76c4a855d19e84d00c91f67b1
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static <P extends HasMetadata> P updateStatusAndCacheResource(
* Patches the status using JSON Merge Patch with optimistic locking and caches the result for
* next reconciliation. For details see {@link #updateAndCacheResource}.
*/
public static <P extends HasMetadata> P jsonMergePatchStatusAndCacheResource(
public static <P extends HasMetadata> P mergePatchStatusAndCacheResource(
P primary, Context<P> context, UnaryOperator<P> modificationFunction) {
return updateAndCacheResource(
primary, context, modificationFunction, r -> context.getClient().resource(r).patchStatus());
Expand All @@ -57,7 +57,7 @@ public static <P extends HasMetadata> P jsonMergePatchStatusAndCacheResource(
* Patches the status using JSON Patch with optimistic locking and caches the result for next
* reconciliation. For details see {@link #updateAndCacheResource}.
*/
public static <P extends HasMetadata> P jsonPatchStatusAndCacheResource(
public static <P extends HasMetadata> P patchStatusAndCacheResource(
P primary, Context<P> context, UnaryOperator<P> modificationFunction) {
return updateAndCacheResource(
primary,
Expand Down
Loading