@@ -367,6 +367,18 @@ void whenDomainShutDown_ignoreNonOperatorPodDisruptionBudgets() {
367
367
assertThat (getRunningPDBs (), contains (createNonOperatorPodDisruptionBudget ()));
368
368
}
369
369
370
+ @ Test
371
+ void whenMakeRightExecuted_ignoreNonOperatorPodDisruptionBudgets () {
372
+ defineServerResources (ADMIN_NAME );
373
+ Arrays .stream (MANAGED_SERVER_NAMES ).forEach (this ::defineServerResources );
374
+ testSupport .defineResources (createNonOperatorPodDisruptionBudget ());
375
+
376
+ DomainPresenceInfo info = new DomainPresenceInfo (domain );
377
+ processor .createMakeRightOperation (info ).interrupt ().withExplicitRecheck ().execute ();
378
+
379
+ assertThat (info .getPodDisruptionBudget (CLUSTER ), notNullValue ());
380
+ }
381
+
370
382
@ Test
371
383
void whenClusterReplicas2_server3WithAlwaysPolicy_establishMatchingPresence () {
372
384
domainConfigurator .configureCluster (CLUSTER ).withReplicas (2 );
@@ -684,7 +696,7 @@ private V1beta1PodDisruptionBudget createNonOperatorPodDisruptionBudget() {
684
696
.putLabelsItem (CREATEDBYOPERATOR_LABEL , "false" )
685
697
.putLabelsItem (DOMAINNAME_LABEL , DomainProcessorTestSetup .UID )
686
698
.putLabelsItem (DOMAINUID_LABEL , DomainProcessorTestSetup .UID )
687
- .putLabelsItem (CLUSTERNAME_LABEL , CLUSTER ))
699
+ .putLabelsItem (DOMAINUID_LABEL , DomainProcessorTestSetup . UID ))
688
700
.spec (new V1beta1PodDisruptionBudgetSpec ()
689
701
.selector (new V1LabelSelector ()
690
702
.putMatchLabelsItem (CREATEDBYOPERATOR_LABEL , "false" )
0 commit comments