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