From a7f35f13d27477086ddd5b3501379b5098a13d6a Mon Sep 17 00:00:00 2001 From: wen wang Date: Thu, 20 Nov 2025 09:07:03 +0800 Subject: [PATCH] test(e2e): fix TestNodePool test failure when installing cilium as external cni This commit fixes the TestNodePool test failure when installing cilium as an external CNI by adjusting the test assertions and configurations to account for external CNIs. --- test/e2e/nodepool_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/e2e/nodepool_test.go b/test/e2e/nodepool_test.go index b9f9e5e12d31..61250fc1f106 100644 --- a/test/e2e/nodepool_test.go +++ b/test/e2e/nodepool_test.go @@ -210,6 +210,12 @@ func executeNodePoolTests(t *testing.T, nodePoolTestCasesPerHostedCluster []Host clusterOpts.NodePoolReplicas = 1 } + // On ARO HCP with Cilium, we need at least one worker node to install cilium-olm operator + // before individual tests run. The cilium-olm deployment requires worker nodes to schedule its pods. + if globalOpts.Platform == hyperv1.AzurePlatform && clusterOpts.ExternalCNIProvider == "cilium" { + clusterOpts.NodePoolReplicas = 1 + } + ctx, cancel := context.WithCancel(testContext) defer cancel() e2eutil.NewHypershiftTest(t, ctx, func(t *testing.T, g Gomega, mgtClient crclient.Client, hostedCluster *hyperv1.HostedCluster) {