Skip to content

Commit 4712358

Browse files
committed
fix
Signed-off-by: Attila Mészáros <[email protected]>
1 parent f203ce7 commit 4712358

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@ && shouldNotDispatchToCleanupWhenMarkedForDeletion(originalResource)) {
100100
executionScope.isDeleteFinalStateUnknown());
101101

102102
// checking the cleaner for all-event-mode
103-
if ((!isAllEventMode() && markedForDeletion) || (isAllEventMode() && controller.isCleaner())) {
103+
if ((!isAllEventMode() && markedForDeletion)
104+
|| (isAllEventMode()
105+
&& controller.isCleaner()
106+
&& (markedForDeletion || executionScope.isDeleteEvent()))) {
104107
return handleCleanup(resourceForExecution, originalResource, context, executionScope);
105108
} else {
106109
return handleReconcile(executionScope, resourceForExecution, originalResource, context);

0 commit comments

Comments
 (0)