From fe958cb9ec29007db0124ef0b7dc273bcb9bc64a Mon Sep 17 00:00:00 2001 From: Ivan Okhotnikov Date: Thu, 16 Jul 2026 02:14:01 +0300 Subject: [PATCH] test(kubernetes): provision e2e workers via KubernetesNodes The chainsaw harness created the Kubernetes CR with spec.nodeGroups, which the control-plane-only chart now ignores, so no MachineDeployment was created and the suites timed out. Create a KubernetesNodes CR named -md0 (roles: [ingress-nginx]) so the same MachineDeployment is produced and the MD/ingress waits pass; this also gives the split its first e2e coverage. Signed-off-by: Ivan Okhotnikov --- hack/e2e-chainsaw/_lib/run-kubernetes.sh | 36 +++++++++++++------ .../kubernetes-oidc-byo.yaml | 14 ++++---- .../kubernetes-oidc-system.yaml | 14 ++++---- 3 files changed, 38 insertions(+), 26 deletions(-) diff --git a/hack/e2e-chainsaw/_lib/run-kubernetes.sh b/hack/e2e-chainsaw/_lib/run-kubernetes.sh index 9ebc097e7..99b296373 100644 --- a/hack/e2e-chainsaw/_lib/run-kubernetes.sh +++ b/hack/e2e-chainsaw/_lib/run-kubernetes.sh @@ -314,16 +314,32 @@ ${ouroboros_addon} resources: {} resourcesPreset: micro host: "" - nodeGroups: - md0: - diskSize: 20Gi - gpus: [] - instanceType: u1.medium - maxReplicas: 10 - minReplicas: 2 - resources: {} - roles: - - ingress-nginx + storageClass: replicated + version: "${k8s_version}" +EOF + + # Worker node pool is a separate KubernetesNodes resource since the Phase 2 + # split. Named "-md0" so it produces MachineDeployment + # kubernetes-${test_name}-md0 — the same object the pre-split + # spec.nodeGroups.md0 produced, which the waits below still key on. Carries + # roles: [ingress-nginx] so the ingress-nginx addon has a node to schedule on. + kubectl apply -f - <