Skip to content

Commit 3a63ab3

Browse files
committed
improve: remove deprecated API usage in ReconciliationDispatcher
1 parent 03e06ce commit 3a63ab3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/event/ReconciliationDispatcher.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,6 @@ private void updatePostExecutionControlWithReschedule(
280280
baseControl.getScheduleDelay().ifPresent(postExecutionControl::withReSchedule);
281281
}
282282

283-
284283
private PostExecutionControl<P> handleCleanup(P resource,
285284
Context<P> context) {
286285
log.debug(
@@ -385,15 +384,14 @@ public R updateResource(R resource) {
385384
getName(resource),
386385
resource.getMetadata().getResourceVersion());
387386
return resource(resource).lockResourceVersion(resource.getMetadata().getResourceVersion())
388-
.replace();
387+
.update();
389388
}
390389

391-
@SuppressWarnings({"rawtypes", "unchecked"})
392390
public R updateStatus(R resource) {
393391
log.trace("Updating status for resource: {}", resource);
394392
return resource(resource)
395393
.lockResourceVersion()
396-
.replaceStatus();
394+
.updateStatus();
397395
}
398396

399397
public R patchStatus(R resource, R originalResource) {

0 commit comments

Comments
 (0)