test(eks): wait for replacement finalization before restart (#7443)

Require ACTIVE with no replacement finalization pending before the registry-hosts test restarts the cluster, so the first node group finishes its replacement k3s container first.

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
This commit is contained in:
Jackson Price authored and GitHub committed 2026-11-03 16:36:52 -04:00
1 parent 9c2a2c2a02
commit 08b6049de7
1 file changed
+1 -1
@@ -418,7 +418,7 @@ class EksRegistryHostsDockerIntegrationTest {
long deadline = System.currentTimeMillis() + 60000;
while (System.currentTimeMillis() < deadline) {
Cluster c = eksService.describeCluster(cluster.getName());
if (c.getStatus() == ClusterStatus.ACTIVE) {
if (c.getStatus() == ClusterStatus.ACTIVE && !c.isFinalizePending()) {
return;
}
Thread.sleep(1000);