@@ -299,7 +299,7 @@ static void dispatchDomainWatch(Watch.Response<Domain> item) {
299
299
if (existing != null && added ) {
300
300
existing .setDeleting (false );
301
301
}
302
- makeRightDomainPresence (existing , domainUID , d , false , false , true );
302
+ makeRightDomainPresence (existing , domainUID , d , added , false , true );
303
303
break ;
304
304
305
305
case "DELETED" :
@@ -310,7 +310,7 @@ static void dispatchDomainWatch(Watch.Response<Domain> item) {
310
310
if (existing != null ) {
311
311
existing .setDeleting (true );
312
312
}
313
- makeRightDomainPresence (existing , domainUID , d , false , true , true );
313
+ makeRightDomainPresence (existing , domainUID , d , true , true , true );
314
314
break ;
315
315
316
316
case "ERROR" :
@@ -460,7 +460,7 @@ static void makeRightDomainPresence(
460
460
return ;
461
461
}
462
462
// 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 ())) {
464
464
// nothing in the spec has changed, but status likely did; update current
465
465
existing .setDomain (dom );
466
466
LOGGER .fine (MessageKeys .NOT_STARTING_DOMAINUID_THREAD , domainUID );
0 commit comments