@@ -367,6 +367,18 @@ void whenDomainShutDown_ignoreNonOperatorPodDisruptionBudgets() {
367367 assertThat (getRunningPDBs (), contains (createNonOperatorPodDisruptionBudget ()));
368368 }
369369
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+
370382 @ Test
371383 void whenClusterReplicas2_server3WithAlwaysPolicy_establishMatchingPresence () {
372384 domainConfigurator .configureCluster (CLUSTER ).withReplicas (2 );
@@ -684,7 +696,7 @@ private V1beta1PodDisruptionBudget createNonOperatorPodDisruptionBudget() {
684696 .putLabelsItem (CREATEDBYOPERATOR_LABEL , "false" )
685697 .putLabelsItem (DOMAINNAME_LABEL , DomainProcessorTestSetup .UID )
686698 .putLabelsItem (DOMAINUID_LABEL , DomainProcessorTestSetup .UID )
687- .putLabelsItem (CLUSTERNAME_LABEL , CLUSTER ))
699+ .putLabelsItem (DOMAINUID_LABEL , DomainProcessorTestSetup . UID ))
688700 .spec (new V1beta1PodDisruptionBudgetSpec ()
689701 .selector (new V1LabelSelector ()
690702 .putMatchLabelsItem (CREATEDBYOPERATOR_LABEL , "false" )
0 commit comments