Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,6 @@ public static <P extends HasMetadata> P patchAndCacheStatus(P primary, Context<P
primary, context, () -> context.getClient().resource(primary).patchStatus());
}

/**
* Makes sure that the up-to-date primary resource will be present during the next reconciliation.
* Using JSON Patch.
*
* @param primary resource
* @param context of reconciliation
* @return updated resource
* @param <P> primary resource type
*/
public static <P extends HasMetadata> P editAndCacheStatus(
P primary, Context<P> context, UnaryOperator<P> operation) {
logWarnIfResourceVersionPresent(primary);
return patchAndCacheStatus(
primary, context, () -> context.getClient().resource(primary).editStatus(operation));
}

/**
* Makes sure that the up-to-date primary resource will be present during the next reconciliation.
*
Expand Down