@@ -527,7 +527,7 @@ public ListPersistentVolumeClaimStep(Step next) {
527
527
@ Override
528
528
public NextAction apply (Packet packet ) {
529
529
DomainPresenceInfo info = packet .getSPI (DomainPresenceInfo .class );
530
-
530
+
531
531
Domain dom = info .getDomain ();
532
532
V1ObjectMeta meta = dom .getMetadata ();
533
533
DomainSpec spec = dom .getSpec ();
@@ -720,6 +720,10 @@ public NextAction apply(Packet packet) {
720
720
for (WlsServerConfig wlsServerConfig : wlsClusterConfig .getServerConfigs ()) {
721
721
String serverName = wlsServerConfig .getName ();
722
722
if (!serverName .equals (asName ) && !servers .contains (serverName )) {
723
+ // done with the current cluster
724
+ if (startedCount >= cs .getReplicas () && !startAll )
725
+ continue cluster ;
726
+
723
727
List <V1EnvVar > env = cs .getEnv ();
724
728
ServerStartup ssi = null ;
725
729
ssl = spec .getServerStartup ();
@@ -739,8 +743,7 @@ public NextAction apply(Packet packet) {
739
743
env = startInAdminMode (env );
740
744
}
741
745
ssic .add (new ServerStartupInfo (wlsServerConfig , wlsClusterConfig , env , ssi ));
742
- if (++startedCount >= cs .getReplicas () && !startAll )
743
- continue cluster ;
746
+ startedCount ++;
744
747
}
745
748
}
746
749
}
@@ -1374,4 +1377,4 @@ public static Collection<NetworkAccessPoint> adminChannelsToCreate(WlsDomainConf
1374
1377
LOGGER .exiting ();
1375
1378
return validatedChannels ;
1376
1379
}
1377
- }
1380
+ }
0 commit comments