Skip to content

Commit 4c94793

Browse files
committed
Added while delete is in-flight
1 parent ed3b869 commit 4c94793

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

operator/src/main/java/oracle/kubernetes/operator/DomainProcessor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ static void dispatchDomainWatch(Watch.Response<Domain> item) {
299299
if (existing != null && added) {
300300
existing.setDeleting(false);
301301
}
302-
makeRightDomainPresence(existing, domainUID, d, false, false, true);
302+
makeRightDomainPresence(existing, domainUID, d, added, false, true);
303303
break;
304304

305305
case "DELETED":
@@ -310,7 +310,7 @@ static void dispatchDomainWatch(Watch.Response<Domain> item) {
310310
if (existing != null) {
311311
existing.setDeleting(true);
312312
}
313-
makeRightDomainPresence(existing, domainUID, d, false, true, true);
313+
makeRightDomainPresence(existing, domainUID, d, true, true, true);
314314
break;
315315

316316
case "ERROR":
@@ -460,7 +460,7 @@ static void makeRightDomainPresence(
460460
return;
461461
}
462462
// Has the spec actually changed? We will get watch events for status updates
463-
if (!isDeleting && !explicitRecheck && spec != null && spec.equals(current.getSpec())) {
463+
if (!explicitRecheck && spec != null && spec.equals(current.getSpec())) {
464464
// nothing in the spec has changed, but status likely did; update current
465465
existing.setDomain(dom);
466466
LOGGER.fine(MessageKeys.NOT_STARTING_DOMAINUID_THREAD, domainUID);

0 commit comments

Comments
 (0)